
if (typeof(QS_PROTOCOL) == 'undefined') 
    QS_PROTOCOL = 'http://';
var xDW = {
    '1/2': (xDesktopW - 6 * 3) / 2,
    '1/3': (xDesktopW - 6 * 4) / 3,
    '1/4': (xDesktopW - 6 * 5) / 4
};
var xDH = {
    '1/2': (xDesktopH - 6 * 3) / 2,
    '1/3': (xDesktopH - 6 * 4) / 3,
    '1/4': (xDesktopH - 6 * 5) / 4
};
var createDefComponentId = (function(){
    var id = -10000;
    return function(){
        return --id;
    };
})();
var QS_MSICIndexs = {
    'XIUSA000X8': '27_0P00001GGA_MSCI AC Americas USD',
    'XIUSA000XB': '27_0P00001GGC_MSCI AC Asia USD',
    'XIUSA000XE': '27_0P00001GGG_MSCI AC Asia Pac USD',
    'XIUSA000XC': '27_0P00001GGE_MSCI AC Asia Pac EX JPN USD',
    'XIUSA000F6': '27_0P00001FYF_MSCI AC Asia EX Japan USD',
    'XIUSA000N6': '27_0P00001G6F_MSCI AC Europe USD',
    'FOUSA05QNR': '27_0P00006KZ5_MSCI AC Europe Growth USD',
    'FOUSA05QO2': '27_0P00006KZG_MSCI AC Europe Value USD',
    'XIUSA000MY': '27_0P00001G67_MSCI AC Far East USD',
    'XIUSA000F4': '27_0P00001FYD_MSCI AC Far East Ex Japan USD',
    'FOUSA05QO4': '27_0P00006KZI_MSCI AC Far East Ex Japan Ex HK USD',
    'XIUSA000XK': '27_0P00001GGM_MSCI AC Pacific USD',
    'XIUSA000XI': '27_0P00001GGK_MSCI AC Pacific Ex Japan USD',
    'FOUSA05QOW': '27_0P00006L0A_MSCI AC Pacific Ex Japan Ex HK USD',
    'XIUSA000JH': '27_0P00001G2Q_MSCI AC World USD',
    'FOUSA05QP3': '27_0P00006L0H_MSCI AC World Ex Australia USD',
    'XIUSA04EX9': '27_0P00001L8F_MSCI AC World Ex EMU USD',
    'XIUSA000HT': '27_0P00001G12_MSCI AC World Ex Japan USD',
    'XIUSA000JL': '27_0P00001G12_MSCI AC World Ex USA USD',
    'FOUSA07D59': '27_0P0000GW4G_MSCI AC FM Asia USD',
    'FOUSA07D53': '27_0P0000GW4A_MSCI AC FM E&C USD',
    'FOUSA07D4L': '27_0P0000GW3S_MSCI ACWI FM USD',
    'FOUSA07D4X': '27_0P0000GW44_MSCI ACWI FM Ex JPN USD',
    'FOUSA07D4R': '27_0P0000GW3Y_MSCI ACWI FM Ex USA USD',
    'XIUSA000FN': '27_0P00001FYW_MSCI EAFE&EM USD',
    'XIUSA04GAV': '27_0P00001MM1_MSCI AC Golden Dragon USD',
    'FOUSA05V1J': '27_0P00006QLP_MSCI AC Zhong Hua USD',
    'XIUSA000CV': '27_0P00001FW4_MSCI EAFE USD',
    'XIUSA000FC': '27_0P00001FYL_MSCI EAFE&Canada USD',
    'XIUSA000FX': '27_0P00001FZ6_MSCI EAFE ex UK USD',
    'XIUSA000G2': '27_0P00001FZB_MSCI EASEA USD',
    'XIUSA000XQ': '27_0P00001GGS_MSCI EMU USD',
    'FOUSA05US8': '27_0P00006QCG_MSCI EMU Ex Germany USD',
    'XIUSA000N3': '27_0P00001G6C_MSCI EU USD',
    'XIUSA000XS': '27_0P00001GGU_MSCI Euro USD',
    'XIUSA000EK': '27_0P00001FXT_MSCI Europe USD',
    'XIUSA000XG': '27_0P00001GGI_MSCI AC Europe&Middle East USD',
    'XIUSA000HL': '27_0P00001G0U_MSCI Europe GDP Weighted USD',
    'XIUSA04F9T': '27_0P00001LKZ_MSCI Europe Ex EMU USD',
    'XIUSA04FAT': '27_0P00001LLZ_MSCI Europe Ex Switzerland USD',
    'XIUSA000H1': '27_0P00001G0A_MSCI Europe ex UK USD',
    'XIUSA000GS': '27_0P00001G01_MSCI Far East USD',
    'XIUSA000XU': '27_0P00001GGW_MSCI G7 USD',
    'XIUSA000GY': '27_0P00001G07_MSCI Kokusai (World Ex Japan) USD',
    'XIUSA000GR': '27_0P00001G00_MSCI Nordic Countries USD',
    'XIUSA000GQ': '27_0P00001FZZ_MSCI North America USD',
    'XIUSA000HO': '27_0P00001G0X_MSCI Pacific USD',
    'XIUSA000GZ': '27_0P00001G08_MSCI Pacific ex Japan USD',
    'XIUSA04FI4': '27_0P00001LTA_MSCI PanEuro USD',
    'XIUSA000CW': '27_0P00001FW5_MSCI World USD',
    'XIUSA000HN': '27_0P00001G0W_MSCI World Ex Australia USD',
    'XIUSA04FKS': '27_0P00001LVY_MSCI World Ex EMU USD',
    'XIUSA000XY': '27_0P00001GH0_MSCI World Ex Europe USD',
    'XIUSA000H0': '27_0P00001G09_MSCI World Ex UK USD',
    'XIUSA000JL': '27_0P00001G2U_MSCI AC World Ex USA USD',
    'XIUSA000FR': '27_0P00001FZ0_MSCI EAFE Free USD',
    'XIUSA000GW': '27_0P00001G05_MSCI Far East Free USD',
    'XIUSA000GU': '27_0P00001G03_MSCI Pacific Free USD',
    'XIUSA000GV': '27_0P00001G04_MSCI Pacific Free Ex Japan USD',
    'XIUSA000GT': '27_0P00001G02_MSCI World Free USD',
    'FOUSA06ETP': '27_0P00008KQ4_MSCI BRIC USD',
    'FOUSA07D33': '27_0P0000GW2A_MSCI EFM USD',
    'FOUSA06VS6': '27_0P0000GBG8_MSCI EFM Africa USD',
    'FOUSA07D43': '27_0P0000GW3A_MSCI EFM Africa Ex ZAF USD',
    'FOUSA07D49': '27_0P0000GW3G_MSCI EFM Asia USD',
    'FOUSA07D3F': '27_0P0000GW2M_MSCI EFM CEEC Ex RUS USD',
    'FOUSA07D3X': '27_0P0000GW34_MSCI EFM EMEA USD',
    'FOUSA07D3L': '27_0P0000GW2S_MSCI EFM E&C USD',
    'FOUSA07D3R': '27_0P0000GW2Y_MSCI EFM E&C Ex Rus USD',
    'XIUSA000G7': '27_0P00001FZG_MSCI EM USD',
    'XIUSA000G9': '27_0P00001FZI_MSCI EM Asia USD',
    'XIUSA000K0': '27_0P00001G39_MSCI EM Eastern Europe USD',
    'FOUSA06FAM': '27_0P00008L6N_MSCI EM EMEA USD',
    'XIUSA000JZ': '27_0P00001G38_MSCI EM Europe USD',
    'XIUSA000JG': '27_0P00001G2P_MSCI EM Europe&Middle East USD',
    'XIUSA000GB': '27_0P00001FZK_MSCI EM Far East USD',
    'XIUSA000HP': '27_0P00001G0Y_MSCI EM Latin America USD',
    'F00000GW7M': '27_0P0000NB35_MSCI EM Ex Asia PR USD',
    'FOUSA06O6E': '27_0P0000A4JC_MSCI Jordan Egypt Morocco GR USD',
    'FOUSA06V5B': '27_0P0000G79M_MSCI Frontier Markets USD',
    'FOUSA06V5H': '27_0P0000G79Y_MSCI FM Africa USD',
    'FOUSA09K80': '27_0P0000MXZH_MSCI FM Asia PR USD',
    'FOUSA06V5N': '27_0P0000G7AA_MSCI FM Central&EasternEurope&CIS USD',
    'FOUSA06V5T': '27_0P0000G7AM_MSCI FM EMEA USD',
    'FOUSA09K86': '27_0P0000MXZN_MSCI FM Latin America &Caribbean PR USD',
    'FOUSA06V5Z': '27_0P0000G7AY_MSCI FM Ex GCC USD',
    'FOUSA09K8C': '27_0P0000MXZT_MSCI Frontier Emerging Market PR USD',
    'XIUSA000CY': '27_0P00001FW7_MSCI Austria USD',
    'XIUSA000DJ': '27_0P00001FWS_MSCI Belgium USD',
    'XIUSA000D1': '27_0P00001FWA_MSCI Denmark USD',
    'XIUSA000D2': '27_0P00001FWB_MSCI Finland USD',
    'XIUSA000D3': '27_0P00001FWC_MSCI France USD',
    'XIUSA000D4': '27_0P00001FWD_MSCI Germany USD',
    'XIUSA000E7': '27_0P00001FXG_MSCI Greece USD',
    'XIUSA000ND': '27_0P00001G6M_MSCI Ireland USD',
    'XIUSA000D7': '27_0P00001FWG_MSCI Italy USD',
    'XIUSA000DA': '27_0P00001FWJ_MSCI Netherlands USD',
    'XIUSA000DC': '27_0P00001FWL_MSCI Norway USD',
    'XIUSA000NQ': '27_0P00001G6Z_MSCI Portugal USD',
    'XIUSA000DE': '27_0P00001FWN_MSCI Spain USD',
    'XIUSA000DF': '27_0P00001FWO_MSCI Sweden USD',
    'XIUSA000DG': '27_0P00001FWP_MSCI Switzerland USD',
    'XIUSA000DH': '27_0P00001FWQ_MSCI UK USD',
    'XIUSA000EK': '27_0P00001FXT_MSCI Europe USD',
    'XIUSA000XQ': '27_0P00001GGS_MSCI EMU USD',
    'XIUSA04F9T': '27_0P00001LKZ_MSCI Europe Ex EMU USD',
    'XIUSA000H1': '27_0P00001G0A_MSCI Europe ex UK USD',
    'XIUSA000GR': '27_0P00001G00_MSCI Nordic Countries USD',
    'XIUSA000CX': '27_0P00001FW6_MSCI Australia USD',
    'XIUSA000D5': '27_0P00001FWE_MSCI Hong Kong USD',
    'XIUSA000D8': '27_0P00001FWH_MSCI Japan USD',
    'XIUSA000DB': '27_0P00001FWK_MSCI New Zealand USD',
    'XIUSA000DD': '27_0P00001FWM_MSCI Singapore USD',
    'XIUSA000HO': '27_0P00001G0X_MSCI Pacific USD',
    'XIUSA000GZ': '27_0P00001G08_MSCI Pacific ex Japan USD',
    'XIUSA000CZ': '27_0P00001FW8_MSCI Canada USD',
    'XIUSA000H3': '27_0P00001G0C_MSCI USA USD',
    'XIUSA000GQ': '27_0P00001FZZ_MSCI North America USD',
    'XIUSA000CV': '27_0P00001FW4_MSCI EAFE USD',
    'XIUSA000GS': '27_0P00001G01_MSCI Far East USD',
    'XIUSA000D6': '27_0P00001FWF_MSCI Israel USD',
    'XIUSA000CW': '27_0P00001FW5_MSCI World USD',
    'XIUSA000G2': '27_0P00001FZB_MSCI EASEA USD',
    'XIUSA000GY': '27_0P00001G07_MSCI Kokusai (World Ex Japan) USD',
    'XIUSA000H2': '27_0P00001G0B_MSCI Singapore Free USD',
    'XIUSA000KF': '27_0P00001G3O_MSCI China USD',
    'XIUSA000NC': '27_0P00001G6L_MSCI India USD',
    'XIUSA000K9': '27_0P00001G3I_MSCI EM Indonesia PR USD',
    'XIUSA000NH': '27_0P00001G6Q_MSCI Korea USD',
    'XIUSA000K5': '27_0P00001G3E_MSCI Malaysia USD',
    'XIUSA000NP': '27_0P00001G6Y_MSCI Philippines USD',
    'XIUSA000NW': '27_0P00001G75_MSCI Taiwan USD',
    'XIUSA000K7': '27_0P00001G3G_MSCI Thailand USD',
    'XIUSA000G9': '27_0P00001FZI_MSCI EM Asia USD',
    'XIUSA000GB': '27_0P00001FZK_MSCI EM Far East USD',
    'XIUSA000MV': '27_0P00001G64_MSCI Brazil USD',
    'XIUSA000MZ': '27_0P00001G68_MSCI Chile USD',
    'XIUSA000D0': '27_0P00001FW9_MSCI Colombia USD',
    'XIUSA000KD': '27_0P00001G3M_MSCI Mexico USD',
    'XIUSA000GO': '27_0P00001FZX_MSCI Peru USD',
    'XIUSA000HP': '27_0P00001G0Y_MSCI EM Latin America USD',
    'XIUSA000IF': '27_0P00001G1O_MSCI Czech Republic USD',
    'XIUSA000IG': '27_0P00001G1P_MSCI Hungary USD',
    'XIUSA000JS': '27_0P00001G31_MSCI Poland USD',
    'XIUSA000K3': '27_0P00001G3C_MSCI Russia USD',
    'XIUSA000NY': '27_0P00001G77_MSCI Turkey USD',
    'XIUSA000JG': '27_0P00001G2P_MSCI EM Europe&Middle East USD',
    'XIUSA000JZ': '27_0P00001G38_MSCI EM Europe USD',
    'XIUSA000K0': '27_0P00001G39_MSCI EM Eastern Europe USD',
    'XIUSA000XO': '27_0P00001GGQ_MSCI Egypt USD',
    'XIUSA000XW': '27_0P00001GGY_MSCI Morocco USD',
    'XIUSA000JU': '27_0P00001G33_MSCI South Africa USD',
    'XIUSA000G7': '27_0P00001FZG_MSCI EM USD',
    'FOUSA063SQ': '27_0P00007PNG_MSCI EAFE&Canada Value USD',
    'XIUSA04F2E': '27_0P00001LDK_MSCI EAFE Value USD',
    'FOUSA063SW': '27_0P00007PNM_MSCI EAFE Ex UK Value USD',
    'XIUSA04F2N': '27_0P00001LDT_MSCI EASEA Value USD',
    'XIUSA04F6K': '27_0P00001LHQ_MSCI EMU Value USD',
    'FOUSA05UR9': '27_0P00006Q9V_MSCI EM Europe&ME Growth USD',
    'XIUSA04FBB': '27_0P00001LMH_MSCI Europe Value USD',
    'XIUSA04FB2': '27_0P00001LM8_MSCI Europe Ex UK Value USD',
    'FOUSA05USV': '27_0P00007YG9_MSCI Far East Value USD',
    'XIUSA04FGQ': '27_0P00001LRW_MSCI Nordic Countries Value USD',
    'XIUSA04FGZ': '27_0P00001LS5_MSCI North America Value USD',
    'XIUSA04FI1': '27_0P00001LT7_MSCI Pacific Value USD',
    'XIUSA04FHH': '27_0P00001LSN_MSCI Pacific Ex Japan Value USD',
    'XIUSA04FK6': '27_0P00001LVC_MSCI World Value USD',
    'FOUSA05UZT': '27_0P00006QK1_MSCI World Ex Australia Value USD',
    'FOUSA05V05': '27_0P00006QKD_MSCI World Ex UK Value USD',
    'FOUSA05V0B': '27_0P00006QKH_MSCI World Ex USA Value USD',
    'XIUSA04F26': '27_0P00001LDC_MSCI EAFE Free Value USD',
    'FOUSA05USR': '27_0P00006QCZ_MSCI Far East Free Value USD',
    'XIUSA04FHT': '27_0P00001LSZ_MSCI Pacific Free Value USD',
    'XIUSA04F0R': '27_0P00001LBX_MSCI Austria Value USD',
    'XIUSA04F10': '27_0P00001LC6_MSCI Belgium Value USD',
    'XIUSA04F1Y': '27_0P00001LD4_MSCI Denmark Value USD',
    'XIUSA04FEB': '27_0P00001LPH_MSCI Finland Value USD',
    'XIUSA04FEK': '27_0P00001LPQ_MSCI France Value USD',
    'XIUSA04FEV': '27_0P00001LQ1_MSCI Germany Value USD',
    'FOUSA06DKM': '27_0P00008JH1_MSCI Greece Value USD',
    'XIUSA04FFN': '27_0P00001LQT_MSCI Italy Value USD',
    'XIUSA04FGH': '27_0P00001LRN_MSCI Netherlands Value USD',
    'XIUSA04FH8': '27_0P00001LSE_MSCI Norway Value USD',
    'XIUSA04FIK': '27_0P00001LTQ_MSCI Portugal Value USD',
    'XIUSA04FJ3': '27_0P00001LU9_MSCI Spain Value USD',
    'XIUSA04FJE': '27_0P00001LUK_MSCI Sweden Value USD',
    'XIUSA04FJN': '27_0P00001LUT_MSCI Switzerland Value USD',
    'XIUSA04FKH': '27_0P00001LVN_MSCI UK Value USD',
    'XIUSA04FBB': '27_0P00001LMH_MSCI Europe Value USD',
    'XIUSA04F6K': '27_0P00001LHQ_MSCI EMU Value USD',
    'XIUSA04FB2': '27_0P00001LM8_MSCI Europe Ex UK Value USD',
    'XIUSA04FGQ': '27_0P00001LRW_MSCI Nordic Countries Value USD',
    'XIUSA04F0I': '27_0P00001LBO_MSCI Australia Value USD',
    'XIUSA04FF6': '27_0P00001LQC_MSCI Hong Kong Value USD',
    'XIUSA04FFW': '27_0P00001LR2_MSCI Japan Value USD',
    'FOUSA06DND': '27_0P00008JJS_MSCI New Zealand Value USD',
    'FOUSA06DPB': '27_0P00008JLQ_MSCI Singapore Value USD',
    'XIUSA04FI1': '27_0P00001LT7_MSCI Pacific Value USD',
    'XIUSA04FHH': '27_0P00001LSN_MSCI Pacific Ex Japan Value USD',
    'XIUSA04F1B': '27_0P00001LCH_MSCI Canada Value USD',
    'XIUSA04FKQ': '27_0P00001LVW_MSCI USA Value USD',
    'XIUSA04FGZ': '27_0P00001LS5_MSCI North America Value USD',
    'XIUSA04F2E': '27_0P00001LDK_MSCI EAFE Value USD',
    'FOUSA05USV': '27_0P00006QAF_MSCI Far East Value USD',
    'FOUSA06DM2': '27_0P00008JIH_MSCI Israel Value USD',
    'XIUSA04FK6': '27_0P00001LVC_MSCI World Value USD',
    'XIUSA04F2N': '27_0P00001LDT_MSCI EASEA Value USD',
    'FOUSA06DOV': '27_0P00008JLA_MSCI Singapore Free Value USD',
    'XIUSA04F1L': '27_0P00001LCR_MSCI China Value USD',
    'FOUSA06DL6': '27_0P00008JHL_MSCI India Value USD',
    'FOUSA06DLC': '27_0P00008JHR_MSCI Indonesia Value USD',
    'XIUSA04FG4': '27_0P00001LRA_MSCI Korea Value USD',
    'FOUSA05RMW': '27_0P00006LYA_MSCI Malaysia Value NR USD',
    'FOUSA06DO7': '27_0P00008JKM_MSCI Philippines Value USD',
    'FOUSA06DQB': '27_0P00008JMQ_MSCI Taiwan Value USD',
    'FOUSA06DQH': '27_0P00008JMW_MSCI Thailand Value USD',
    'XIUSA04F33': '27_0P00001LE9_MSCI EM Asia Value USD',
    'FOUSA05URF': '27_0P00006QAF_MSCI EM Far East Value USD',
    'FOUSA06DFE': '27_0P00008JBT_MSCI Brazil Value USD',
    'FOUSA06DFK': '27_0P00008JBZ_MSCI Chile Value USD',
    'FOUSA06DFO': '27_0P00008JC3_MSCI Colombia Value USD',
    'FOUSA06DMY': '27_0P00008JJD_MSCI Mexico Value USD',
    'FOUSA06DO1': '27_0P00008JKG_MSCI Peru Value USD',
    'XIUSA04F3P': '27_0P00001LEV_MSCI EM Latin America Value USD',
    'FOUSA06DFU': '27_0P00008JC9_MSCI Czech Republic Value USD',
    'FOUSA06DKY': '27_0P00008JHD_MSCI Hungary Value USD',
    'FOUSA06DOD': '27_0P00008JKS_MSCI Poland Value USD',
    'XIUSA04FIS': '27_0P00001LTY_MSCI Russia Value USD',
    'FOUSA06DQN': '27_0P00008JN2_MSCI Turkey Value USD',
    'XIUSA04F3D': '27_0P00001LEJ_MSCI EM Europe Value USD',
    'FOUSA05UR7': '27_0P00006Q9P_MSCI EM Eastern Europe Value USD',
    'FOUSA06F87': '27_0P00008L48_MSCI Egypt Value USD',
    'FOUSA06F8D': '27_0P00008L4E_MSCI Morocco Value USD',
    'FOUSA06DPN': '27_0P00008JM2_MSCI South Africa Value USD',
    'XIUSA04F2V': '27_0P00001LE1_MSCI EM Value USD',
    'FOUSA063SM': '27_0P00007ZAQ_MSCI EAFE&Canada Growth USD',
    'XIUSA04F29': '27_0P00001LDF_MSCI EAFE Growth USD',
    'FOUSA063SU': '27_0P00007PNK_MSCI EAFE Ex UK Growth USD',
    'XIUSA04F2H': '27_0P00001LDN_MSCI EASEA Growth USD',
    'XIUSA04F6D': '27_0P00001LHJ_MSCI EMU Growth USD',
    'FOUSA05UR9': '27_0P00006Q9V_MSCI EM Europe&ME Growth USD',
    'XIUSA04FB5': '27_0P00001LMB_MSCI Europe Growth USD',
    'XIUSA04FAW': '27_0P00001LM2_MSCI Europe Ex UK Growth USD',
    'FOUSA05UST': '27_0P00006QD1_MSCI Far East Growth USD',
    'XIUSA04FGK': '27_0P00001LRQ_MSCI Nordic Countries Growth USD',
    'XIUSA04FGT': '27_0P00001LRZ_MSCI North America Growth USD',
    'XIUSA04FHV': '27_0P00001LT1_MSCI Pacific Growth USD',
    'XIUSA04FHB': '27_0P00001LSH_MSCI Pacific Ex Japan Growth USD',
    'XIUSA04FK0': '27_0P00001LV6_MSCI World Growth USD',
    'FOUSA05UZQ': '27_0P00006QJY_MSCI World Ex Australia Growth USD',
    'FOUSA05V01': '27_0P00006QK9_MSCI World Ex UK Growth USD',
    'FOUSA05V07': '27_0P00006QKF_MSCI World Ex USA Growth USD',
    'XIUSA04F23': '27_0P00001LD9_MSCI EAFE Free Growth USD',
    'FOUSA05USP': '27_0P00006QCX_MSCI Far East Free Growth USD',
    'XIUSA04FHQ': '27_0P00001LSW_MSCI Pacific Free Growth USD',
    'XIUSA04FJU': '27_0P00001LV0_MSCI World Free Growth USD',
    'XIUSA04F0L': '27_0P00001LBR_MSCI Austria Growth USD',
    'XIUSA04F0U': '27_0P00001LC0_MSCI Belgium Growth USD',
    'XIUSA04F1S': '27_0P00001LCY_MSCI Denmark Growth USD',
    'XIUSA04FE5': '27_0P00001LPB_MSCI Finland Growth USD',
    'XIUSA04FEE': '27_0P00001LPK_MSCI France Growth USD',
    'XIUSA04FEP': '27_0P00001LPV_MSCI Germany Growth USD',
    'FOUSA06DKI': '27_0P00008JGX_MSCI Greece Growth USD',
    'FOUSA06DLE': '27_0P00008JHT_MSCI Ireland Growth USD',
    'XIUSA04FFH': '27_0P00001LQN_MSCI Italy Growth USD',
    'XIUSA04FGB': '27_0P00001LRH_MSCI Netherlands Growth USD',
    'XIUSA04FH2': '27_0P00001LS8_MSCI Norway Growth USD',
    'XIUSA04FID': '27_0P00001LTJ_MSCI Portugal Growth USD',
    'XIUSA04FIX': '27_0P00001LU3_MSCI Spain Growth USD',
    'XIUSA04FJ8': '27_0P00001LUE_MSCI Sweden Growth USD',
    'XIUSA04FJH': '27_0P00001LUN_MSCI Switzerland Growth USD',
    'XIUSA04FKB': '27_0P00001LVH_MSCI UK Growth USD',
    'XIUSA04FB5': '27_0P00001LMB_MSCI Europe Growth USD',
    'XIUSA04F6D': '27_0P00001LHJ_MSCI EMU Growth USD',
    'XIUSA04FAW': '27_0P00001LM2_MSCI Europe Ex UK Growth USD',
    'XIUSA04FGK': '27_0P00001LRQ_MSCI Nordic Countries Growth USD',
    'XIUSA04F0C': '27_0P00001LBI_MSCI Australia Growth USD',
    'XIUSA04FF0': '27_0P00001LQ6_MSCI Hong Kong Growth USD',
    'XIUSA04FFQ': '27_0P00001LQW_MSCI Japan Growth USD',
    'FOUSA06DN6': '27_0P00008JJL_MSCI New Zealand Growth USD',
    'FOUSA06DP3': '27_0P00008JLI_MSCI Singapore Growth USD',
    'XIUSA04FHV': '27_0P00001LT1_MSCI Pacific Growth USD',
    'XIUSA04FHB': '27_0P00001LSH_MSCI Pacific Ex Japan Growth USD',
    'XIUSA04F15': '27_0P00001LCB_MSCI Canada Growth USD',
    'XIUSA04FKK': '27_0P00001LVQ_MSCI USA Growth USD',
    'XIUSA04FGT': '27_0P00001LRZ_MSCI North America Growth USD',
    'XIUSA00142': '27_0P00001GN4_MSCI EAFE Small Cap USD',
    'FOUSA05UST': '27_0P00006QD1_MSCI Far East Growth USD',
    'FOUSA06DLU': '27_0P00008JI9_MSCI Israel Growth USD',
    'XIUSA04FK0': '27_0P00001LV6_MSCI World Growth USD',
    'XIUSA04F2H': '27_0P00001LDN_MSCI EASEA Growth USD',
    'FOUSA06DON': '27_0P00008JL2_MSCI Singapore Free Growth USD',
    'XIUSA04F1H': '27_0P00001LCN_MSCI China Growth USD',
    'FOUSA06DL2': '27_0P00008JHH_MSCI India Growth USD',
    'FOUSA06DLA': '27_0P00008JHP_MSCI Indonesia Growth USD',
    'XIUSA04FG0': '27_0P00001LR6_MSCI Korea Growth USD',
    'FOUSA05RMQ': '27_0P00006LY4_MSCI Malaysia Growth NR USD',
    'FOUSA06DO5': '27_0P00008JKK_MSCI Philippines Growth USD',
    'FOUSA06DQ9': '27_0P00008JMO_MSCI Taiwan Growth USD',
    'FOUSA06DQF': '27_0P00008JMU_MSCI Thailand Growth USD',
    'XIUSA04F2Z': '27_0P00001LE5_MSCI EM Asia Growth USD',
    'FOUSA05URD': '27_0P00006QA8_MSCI EM Far East Growth USD',
    'FOUSA06DFC': '27_0P00008JBR_MSCI Brazil Growth USD',
    'FOUSA06DFI': '27_0P00008JBX_MSCI Chile Growth USD',
    'FOUSA06DFM': '27_0P00008JC1_MSCI Colombia Growth USD',
    'FOUSA06DMU': '27_0P00008JJ9_MSCI Mexico Growth USD',
    'FOUSA06DNX': '27_0P00008JKC_MSCI Peru Growth USD',
    'XIUSA04F3L': '27_0P00001LER_MSCI EM Latin America Growth USD',
    'FOUSA06DFQ': '27_0P00008JC5_MSCI Czech Republic Growth USD',
    'FOUSA06DKU': '27_0P00008JH9_MSCI Hungary Growth USD',
    'FOUSA06DO9': '27_0P00008JKO_MSCI Poland Growth USD',
    'XIUSA04FIO': '27_0P00001LTU_MSCI Russia Growth USD',
    'FOUSA06DQJ': '27_0P00008JMY_MSCI Turkey Growth USD',
    'XIUSA04F39': '27_0P00001LEF_MSCI EM Europe Growth USD',
    'FOUSA05UR5': '27_0P00006Q9J_MSCI EM Eastern Europe Growth USD',
    'FOUSA06F8J': '27_0P00008L4K_MSCI Egypt Growth USD',
    'FOUSA06F8P': '27_0P00008L4Q_MSCI Morocco Growth USD',
    'FOUSA06DPJ': '27_0P00008JLY_MSCI South Africa Growth USD',
    'XIUSA04F2R': '27_0P00001LDX_MSCI EM Growth USD',
    'FOUSA08QT8': '27_0P0000JPY1_MSCI EAFE Mid PR USD',
    'F00000HE7C': '27_0P0000NZL0_MSCI EMU Mid NR USD',
    'F00000IT6K': '27_0P0000OPTT_MSCI Europe Mid Cap GR USD',
    'F00000HFIU': '27_0P0000O0WK_MSCI North America Mid NR USD',
    'FOUSA08N4T': '27_0P0000IQ03_MSCI World Mid USD',
    'FOUSA063SO': '27_0P00007PNE_MSCI EAFE&Canada Small Cap USD',
    'FOUSA063SS': '27_0P00007PNI_MSCI EAFE Ex UK Small Cap USD',
    'XIUSA04F2K': '27_0P00001LDQ_MSCI EASEA Small Cap USD',
    'XIUSA04F6H': '27_0P00001LHN_MSCI EMU Small Cap USD',
    'XIUSA04FB8': '27_0P00001LME_MSCI Europe Small Cap USD',
    'XIUSA04FAZ': '27_0P00001LM5_MSCI Europe Ex UK Small Cap USD',
    'XIUSA04FE2': '27_0P00001LP8_MSCI Far East Small Cap USD',
    'XIUSA04FGN': '27_0P00001LRT_MSCI Nordic Countries Small Cap USD',
    'XIUSA04FGW': '27_0P00001LS2_MSCI North America Small Cap USD',
    'XIUSA04FHY': '27_0P00001LT4_MSCI Pacific Small Cap USD',
    'XIUSA04FHE': '27_0P00001LSK_MSCI Pacific Ex Japan Small Cap USD',
    'XIUSA04FK3': '27_0P00001LV9_MSCI World Small Cap USD',
    'FOUSA05V03': '27_0P00006QKB_MSCI World Ex UK Small Cap USD',
    'XIUSA04GSF': '27_0P00001QLZ_MSCI World Ex USA Small Cap USD',
    'XIUSA04F0X': '27_0P00001LC3_MSCI Belgium Small Cap USD',
    'XIUSA04FES': '27_0P00001LPY_MSCI Germany Small Cap USD',
    'FOUSA05S4J': '27_0P00006MFX_MSCI Greece Small Cap USD',
    'FOUSA06E8D': '27_0P00008K4R_MSCI Ireland Small Cap USD',
    'XIUSA04FFK': '27_0P00001LQQ_MSCI Italy Small Cap USD',
    'XIUSA04FH5': '27_0P00001LSB_MSCI Norway Small Cap USD',
    'XIUSA04FIH': '27_0P00001LTN_MSCI Portugal Small Cap USD',
    'XIUSA04FJ0': '27_0P00001LU6_MSCI Spain Small Cap USD',
    'XIUSA04FJ8': '27_0P00001LUE_MSCI Sweden Growth USD',
    'XIUSA04FJK': '27_0P00001LUQ_MSCI Switzerland Small Cap USD',
    'XIUSA04FKE': '27_0P00001LVK_MSCI UK Small Cap USD',
    'XIUSA04FB8': '27_0P00001LME_MSCI Europe Small Cap USD',
    'XIUSA04F6H': '27_0P00001LHN_MSCI EMU Small Cap USD',
    'XIUSA04FAZ': '27_0P00001LM5_MSCI Europe Ex UK Small Cap USD',
    'XIUSA04FGN': '27_0P00001LRT_MSCI Nordic Countries Small Cap USD',
    'XIUSA04F0F': '27_0P00001LBL_MSCI Australia Small Cap USD',
    'XIUSA04FF3': '27_0P00001LQ9_MSCI Hong Kong Small Cap USD',
    'XIUSA04FFT': '27_0P00001LQZ_MSCI Japan Small Cap USD',
    'FOUSA05S59': '27_0P00006MGN_MSCI New Zealand Small Cap USD',
    'FOUSA05S5X': '27_0P00006MHB_MSCI Singapore Small Cap USD',
    'XIUSA04FHY': '27_0P00001LT4_MSCI Pacific Small Cap USD',
    'XIUSA04FHE': '27_0P00001LSK_MSCI Pacific Ex Japan Small Cap USD',
    'XIUSA04F18': '27_0P00001LCE_MSCI Canada Small Cap USD',
    'XIUSA04FKN': '27_0P00001LVT_MSCI USA Small Cap USD',
    'XIUSA04FGW': '27_0P00001LS2_MSCI North America Small Cap USD',
    'XIUSA00142': '27_0P00001GN4_MSCI EAFE Small Cap USD',
    'XIUSA04FE2': '27_0P00001LP8_MSCI Far East Small Cap USD',
    'XIUSA04FK3': '27_0P00001LV9_MSCI World Small Cap USD',
    'XIUSA04F2K': '27_0P00001LDQ_MSCI EASEA Small Cap USD'
}

/*
MstarData.Watchlist = {
    '-1': {
        name: 'Dow Jones',
        tickers: ['0P0000000I', '0P0000008J', '0P000000CU', '0P00000031', '0P000000PA', '0P000000TU', '0P0000014I', '0P00000185', '0P0000019Y', '0P000001BW', '0P000001TB', '0P00000220', '0P000002DO', '0P000002O2', '0P000002OY', '0P000002X8', '0P000002RH', '0P0000031C', '0P0000032S', '0P0000036D', '0P000003IJ', '0P000003KE', '0P000003MH', '0P000004C0', '0P000004GV', '0P0000053I', '0P000005NO', '0P000005QY', '0P000005UH', '0P000005UJ']
    },
    '-2': {
        name: 'S&P Top 50',
        tickers: ['0P0000006A', '0P0000008J', '0P000000CU', '0P000000D5', '0P000000GY', '0P000000H9', '0P00000031', '0P000000PA', '0P000000UI', '0P000000VL', '0P0000019Y', '0P000001A2', '0P000001DB', '0P000001O5', '0P000001T7', '0P0000062O', '0P000001TS', '0P00000220', '0P0000024R', '0P0000029A', '0P000002AI', '0P000002DO', '0P000002EJ', '0P000002LQ', '0P000002O2', '0P000002OY', '0P000002QK', '0P000002X8', '0P0000031C', '0P0000034X', '0P000003KE', '0P000003MC', '0P000003MH', '0P000003PC', '0P000003PN', '0P00000654', '0P000003RE', '0P0000043L', '0P000004C0', '0P000004J4', '0P000004MW', '0P0000068Y', '0P000005EI', '0P000001RP', '0P000005KW', '0P000005QY', '0P000005UH', '0P000005WD', '0P00000613']
    },
    '-3': {
        name: 'US Index',
        tickers: ['0P0000GD13', '0P00001FJG', '0P00008PAC', '0P00008M3N', '0P00001IS1', '0P00008IVF', '0P0000GD0I', '0P0000GD07', '0P00006F2S', '0P0000GD08', '0P0000GD0G', '0P0000GCZQ', '0P00009XZK', '0P0000GD12', '0P00001G7J', '0P00001IS5', '0P0000GD0M', '0P00001LXY', '0P0000GD11', '0P0000GD0H', '0P00001G7C', '0P0000GD0B', '0P0000GD0D', '0P0000GD06', '0P00001G7I', '0P00001G7J', '0P00006F3A', '0P0000GCZY', '0P0000GCZW', '0P0000GD01', '0P0000GCZU', '0P0000GCZT', '0P0000GCZO', '0P0000GCZR', '0P0000GCZL', '0P00006ID9', '0P0000GD10', '0P0000GD0L', '0P0000GD0F', '0P0000GCZK', '0P0000GCZP', '0P00001G7B', '0P00006GXQ', '0P00006GXP', '0P00006H1L', '0P00006H1M', '0P0000GDES', '0P00006H20', '0P00006H1J', '0P00006H1K', '0P0000GDER', '0P00006H1Z', '0P00006H1W', '0P00006H1X', '0P00006H1R', '0P00006H1T', '0P00006H1V', '0P00006H1Q', '0P00006H1U', '0P00006H1S', '0P00006H7I', '0P00006H7J', '0P00006H7M', '0P00006H7K', '0P00006H7L', '0P00006GXO', '0P00006GXN', '0P0000GDEA', '0P000083OT', '0P000083OS', '0P00001GKC', '0P00001GJW', '0P00001GK8', '0P00001GJT', '0P00001GJX', '0P00001GJH', '0P00001GK3', '0P00001GJN', '0P00001GK6', '0P00001GJQ', '0P00001GK0', '0P00001GJK', '0P00001GK9', '0P00001GJS', '0P00001GK2', '0P00001GJM', '0P00001GK5', '0P00001GJP', '0P00001GJZ', '0P00001GJJ', '0P00001GK7', '0P00001GJR', '0P00001GK1', '0P00001GJL', '0P00001GK4', '0P00001GJO', '0P00001GJY', '0P00001GJI', '0P00001GKA', '0P00001GJU', '0P00006KA4', '0P00001N2Y', '0P00001N2X', '0P00001GKB', '0P00001GJV', '0P00006KA3', '0P00006KA5', '0P0000GD8Z', '0P0000GD8X', '0P0000GDEN', '0P0000GDEM', '0P0000GDEL', '0P0000GDEK', '0P0000GDEJ', '0P0000GDEI', '0P00006GO0', '0P00006GNZ', '0P00001FJI', '0P00008M3O', '0P00006GPA', '0P00006GP7', '0P00006GPG', '0P00006GPF', '0P00006GP4', '0P00006GP3', '0P00006GP5', '0P00006GP6', '0P00006GAM', '0P00006GP9', '0P00006GP2', '0P00006GAL', '0P00006GP8', '0P00006GP1', '0P00006GPE', '0P0000I4NJ', '0P00006GP0', '0P00006GOZ', '0P00006GNT', '0P00006GNS', '0P00006GOY', '0P00006G7P', '0P00006G7O', '0P0000GDE5', '0P0000GDEH', '0P0000GDEG', '0P00006G7N', '0P00006G7L', '0P00006G7K', '0P00006GZZ', '0P00006G7I', '0P0000GDE2', '0P0000GDE1', '0P0000GDE0', '0P00006K8B', '0P0000GDDZ', '0P0000GDE3', '0P0000GDEB','IXUS:IRX','IXUS:FVX','IXUS:TNX','IXUS:TYX']
    },
    '-4': {
        name: 'Global Index',
        tickers: ['0P00007NMC', '0P00008PAC', '0P00008PAD', '0P00008PAH', '0P00008PAI', '0P00008PAJ', '0P00008IV5', '0P00008IV6', '0P00008IV7', '0P00008IV8', '0P00008IV9', '0P00008IVA', '0P00008IVB', '0P00008IVC', '0P00008IVD', '0P00008IVE', '0P00008IVF', '0P00009CYB', '0P00009CYD', '0P0000D2HJ', '0P0000D2HK', '0P0000D2HL', '0P00001QO6', '0P0000Q7T3', '0P00006NNI', '0P00006NNK', '0P00006NNM', '0P00006NNS', '0P00006NNT', '0P00006NNU', '0P00006NNV', '0P00006NNW', '0P00006NNX', '0P00006NNY', '0P00006NNZ', '0P00006NO0', '0P00006NO1', '0P00006NO2', '0P00006NO3', '0P00006NO4', '0P00006NO5', '0P00006NO6', '0P00006NO7', '0P00006NO8', '0P00006NO9', '0P00006NOA', '0P00006NOB', '0P00006NOC', '0P00006NOD', '0P00006NOE', '0P00006NOF', '0P00006NOG', '0P00006NOH', '0P00006NOI', '0P00006NOJ', '0P00006NOK', '0P0000GDPO', '0P00008ICX', '0P00001IS1', '0P00001IS5', '0P00006ID4', '0P00006ID5', '0P00006ID6', '0P00006ID7', '0P0000GBGU', '0P00006I4T', '0P00006I4U', '0P00006MR4', '0P00006F1A', '0P00006G3M']
    },
    '-5': {
        name: 'Currency ETF',
        tickers: ['FOUSA06UQ6', 'FOUSA07XWD', 'FOUSA06SF1', 'FEUSA04AH4', 'FEUSA04AH2', 'FEUSA04AH3', 'FEUSA04AF1', 'FOUSA06B0X', 'FEUSA04AH7', 'FOUSA08GWN', 'FEUSA04AH6', 'FEUSA04AH5', 'FOUSA06GQ2', 'FOUSA06GQ1', 'FOUSA06GQ0', 'FOUSA06SAB', 'FOUSA06R9O', 'FOUSA06TSA', 'FOUSA06R9P', 'FOUSA05JY3', 'FOUSA06B4X', 'FOUSA08MW9', 'FOUSA08MWB', 'FOUSA06SIX', 'FOUSA06SJ3', 'F000005OKV', 'FOUSA07XU1', 'FOUSA06SJ4', 'FOUSA06SJ5', 'FOUSA06SJ6', 'FOUSA06SJ7', 'FOUSA06SJ8']
    },
    '-6': {
        name: 'Commodity ETF',
        tickers: ['F00000IT24', 'F00000H4SW', 'FOUSA07XVL', 'F00000H5C2', 'FOUSA06P5R', 'FOUSA06P5Q', 'FOUSA06MB3', 'FOUSA06MB4', 'FOUSA06MB2', 'FOUSA06MB5', 'FOUSA06UHY', 'FEUSA00009', 'F000005NOD', 'F000005NOE', 'F00000GY87', 'F000003Y6V', 'F00000412U', 'FOUSA06GIE', 'FOUSA06UQ5', 'F00000GY83', 'FOUSA06IB7', 'FOUSA06B59', 'F00000JXA8', 'F000008RRQ', 'FOUSA06OV4', 'FOUSA06K0N', 'FOUSA06J1B', 'FOUSA06SP1', 'FOUSA06M1Z', 'FOUSA06UTV', 'FOUSA06UTR', 'FOUSA06UTS', 'FEUSA04AGG', 'FOUSA06M27', 'FOUSA06UTT', 'FOUSA06M20', 'FOUSA06M21', 'FOUSA06M22', 'FOUSA06UTW', 'FOUSA06M23', 'FOUSA06M25', 'FOUSA06M26', 'FOUSA06UTY', 'FOUSA06UTQ', 'FOUSA06UTP', 'FOUSA06UTU', 'FOUSA06UTX', 'FOUSA06UTO', 'FEUSA04AHM', 'FEUSA04AGE', 'FEUSA0000T', 'FEUSA04AFB', 'FEUSA04AFC', 'FEUSA04AD5', 'F000002QIR', 'FEUSA00032', 'FEUSA04AHJ', 'FEUSA04AFA', 'F000004517', 'F000002OWJ', 'FOUSA06MDU', 'FEUSA04AFG', 'F00000412F', 'FOUSA06K0S', 'FOUSA06R80', 'FEUSA04AEH', 'FOUSA05KBA', 'FOUSA069V4', 'FOUSA06SOZ', 'FOUSA06SQF', 'FOUSA069V2', 'FOUSA06UO2', 'FOUSA06UO4', 'FOUSA06TND', 'FEUSA04AF2', 'FOUSA06TNF', 'FOUSA06UO8', 'FOUSA069V5', 'FOUSA069UZ', 'FOUSA06QQD', 'FOUSA069V0', 'FOUSA069V1', 'FOUSA069V3', 'FOUSA05KBD', 'FEUSA04AE0', 'FEUSA04AE2', 'FOUSA06ITW', 'FOUSA07ZN3', 'FOUSA07ZN1', 'FOUSA06OGB', 'FOUSA06UWI', 'F000005OGT', 'FEUSA04AD7', 'FOUSA05U7D', 'FOUSA08MVP', 'FOUSA08MW7', 'FOUSA08N39', 'FOUSA069PG', 'FOUSA08N3A', 'FOUSA05V5J', 'FEUSA04AD2', 'FOUSA06VOE', 'FEUSA04AG7', 'FEUSA04AG8', 'F00000H15R', 'F00000J4H7', 'F00000H32J', 'F00000J58G', 'FOUSA06SD4', 'FOUSA06SD9', 'FOUSA06SD7', 'FOUSA06SD8', 'FOUSA06SD6', 'FOUSA06SD5', 'FOUSA06SD3', 'FOUSA06SDA', 'F000005G4T', 'FOUSA06TS8', 'F00000JZ2H', 'F000005HTZ', 'FOUSA06MYR', 'F00000GYBD', 'F00000GYBE', 'FOUSA06Q1D', 'FOUSA06SJJ', 'FOUSA06C9E', 'FEUSA04AF4', 'FEUSA04AC9', 'FOUSA05J7M']
    },
    '-7': {
        name: 'Forex',
        tickers: ['245:EURUSDFLIT', '245:USDJPYFLIT', '245:GBPUSDFLIT', '245:EURCHFFLIT', '245:AUDUSDFLIT', '245:USDCADFLIT', '245:EURGBPFLIT', '245:EURJPYFLIT', '245:GBPJPYFLIT', '245:CHFJPYFLIT', '245:GBPCHFFLIT', '245:EURAUDFLIT', '245:EURCADFLIT', '245:EURSEKFLIT', '245:AUDCADFLIT', '245:CADJPYFLIT', '245:NZDJPYFLIT', '245:GBPAUDFLIT', '245:AUDNZDFLIT', '245:EURNZDFLIT']
    },
	'-8':{
		name: 'Futures',
		securityType:'future',
		group:'Overview',
		tickers: ['@SG','@SU','@SP','@ND','DJ','DD','DJC','GI','GIS','YM','ZD','@CL','@BZ','@NG','@HO','@RBO','S','SM','BO','W','O','C','CJ','RR','KT','TT','YO','@GC','@HG','@SI','@PL']
	},
    '-9':{
        name: 'MSCI Country & Regional',
        tickers: ['XIUSA000X8','XIUSA000XB','XIUSA000XE','XIUSA000XC','XIUSA000F6','XIUSA000N6','FOUSA05QNR','FOUSA05QO2','XIUSA000MY','XIUSA000F4','FOUSA05QO4','XIUSA000XK','XIUSA000XI','FOUSA05QOW','XIUSA000JH','FOUSA05QP3','XIUSA04EX9','XIUSA000HT','XIUSA000JL','FOUSA07D59','FOUSA07D53','FOUSA07D4L','FOUSA07D4X','FOUSA07D4R','XIUSA000FN','XIUSA04GAV','FOUSA05V1J','XIUSA000CV','XIUSA000FC','XIUSA000FX','XIUSA000G2','XIUSA000XQ','FOUSA05US8','XIUSA000N3','XIUSA000XS','XIUSA000EK','XIUSA000XG','XIUSA000HL','XIUSA04F9T','XIUSA04FAT','XIUSA000H1','XIUSA000GS','XIUSA000XU','XIUSA000GY','XIUSA000GR','XIUSA000GQ','XIUSA000HO','XIUSA000GZ','XIUSA04FI4','XIUSA000CW','XIUSA000HN','XIUSA04FKS','XIUSA000XY','XIUSA000H0','XIUSA000JL','XIUSA000FR','XIUSA000GW','XIUSA000GU','XIUSA000GV','XIUSA000GT','FOUSA06ETP','FOUSA07D33','FOUSA06VS6','FOUSA07D43','FOUSA07D49','FOUSA07D3F','FOUSA07D3X','FOUSA07D3L','FOUSA07D3R','XIUSA000G7','XIUSA000G9','XIUSA000K0','FOUSA06FAM','XIUSA000JZ','XIUSA000JG','XIUSA000GB','XIUSA000HP','F00000GW7M','FOUSA06O6E','FOUSA06V5B','FOUSA06V5H','FOUSA09K80','FOUSA06V5N','FOUSA06V5T','FOUSA09K86','FOUSA06V5Z','FOUSA09K8C','XIUSA000CY',
            'XIUSA000DJ','XIUSA000D1','XIUSA000D2','XIUSA000D3','XIUSA000D4','XIUSA000E7','XIUSA000ND','XIUSA000D7','XIUSA000DA','XIUSA000DC','XIUSA000NQ','XIUSA000DE','XIUSA000DF','XIUSA000DG','XIUSA000DH','XIUSA000EK','XIUSA000XQ','XIUSA04F9T','XIUSA000H1','XIUSA000GR','XIUSA000CX','XIUSA000D5','XIUSA000D8','XIUSA000DB','XIUSA000DD','XIUSA000HO','XIUSA000GZ','XIUSA000CZ','XIUSA000H3','XIUSA000GQ','XIUSA000CV','XIUSA000GS','XIUSA000D6','XIUSA000CW','XIUSA000G2','XIUSA000GY','XIUSA000H2','XIUSA000KF','XIUSA000NC','XIUSA000K9','XIUSA000NH','XIUSA000K5','XIUSA000NP','XIUSA000NW','XIUSA000K7','XIUSA000G9','XIUSA000GB','XIUSA000MV','XIUSA000MZ','XIUSA000D0','XIUSA000KD','XIUSA000GO','XIUSA000HP','XIUSA000IF','XIUSA000IG','XIUSA000JS','XIUSA000K3','XIUSA000NY','XIUSA000JG','XIUSA000JZ','XIUSA000K0','XIUSA000XO','XIUSA000XW','XIUSA000JU','XIUSA000G7'
            ]
    },
    '-10':{
        name: 'MSCI Style Index',
        group:'Overview',
        tickers: ['FOUSA063SQ','XIUSA04F2E','FOUSA063SW','XIUSA04F2N','XIUSA04F6K','FOUSA05UR9','XIUSA04FBB','XIUSA04FB2','FOUSA05USV','XIUSA04FGQ','XIUSA04FGZ','XIUSA04FI1','XIUSA04FHH','XIUSA04FK6','FOUSA05UZT','FOUSA05V05','FOUSA05V0B','XIUSA04F26','FOUSA05USR','XIUSA04FHT','XIUSA04F0R','XIUSA04F10','XIUSA04F1Y','XIUSA04FEB','XIUSA04FEK','XIUSA04FEV','FOUSA06DKM','XIUSA04FFN','XIUSA04FGH','XIUSA04FH8','XIUSA04FIK','XIUSA04FJ3','XIUSA04FJE','XIUSA04FJN','XIUSA04FKH','XIUSA04FBB','XIUSA04F6K','XIUSA04FB2','XIUSA04FGQ','XIUSA04F0I','XIUSA04FF6','XIUSA04FFW','FOUSA06DND','FOUSA06DPB','XIUSA04FI1','XIUSA04FHH','XIUSA04F1B','XIUSA04FKQ','XIUSA04FGZ','XIUSA04F2E','FOUSA05USV','FOUSA06DM2','XIUSA04FK6','XIUSA04F2N','FOUSA06DOV','XIUSA04F1L','FOUSA06DL6','FOUSA06DLC','XIUSA04FG4','FOUSA05RMW','FOUSA06DO7','FOUSA06DQB','FOUSA06DQH','XIUSA04F33','FOUSA05URF','FOUSA06DFE','FOUSA06DFK','FOUSA06DFO','FOUSA06DMY','FOUSA06DO1','XIUSA04F3P','FOUSA06DFU','FOUSA06DKY','FOUSA06DOD','XIUSA04FIS','FOUSA06DQN','XIUSA04F3D','FOUSA05UR7','FOUSA06F87','FOUSA06F8D','FOUSA06DPN','XIUSA04F2V','FOUSA063SM','XIUSA04F29','FOUSA063SU','XIUSA04F2H','XIUSA04F6D','FOUSA05UR9','XIUSA04FB5','XIUSA04FAW','FOUSA05UST','XIUSA04FGK','XIUSA04FGT','XIUSA04FHV','XIUSA04FHB','XIUSA04FK0','FOUSA05UZQ','FOUSA05V01','FOUSA05V07','XIUSA04F23','FOUSA05USP','XIUSA04FHQ','XIUSA04FJU','XIUSA04F0L','XIUSA04F0U','XIUSA04F1S','XIUSA04FE5','XIUSA04FEE','XIUSA04FEP','FOUSA06DKI','FOUSA06DLE','XIUSA04FFH','XIUSA04FGB','XIUSA04FH2','XIUSA04FID','XIUSA04FIX','XIUSA04FJ8','XIUSA04FJH','XIUSA04FKB','XIUSA04FB5','XIUSA04F6D','XIUSA04FAW','XIUSA04FGK','XIUSA04F0C','XIUSA04FF0','XIUSA04FFQ','FOUSA06DN6','FOUSA06DP3','XIUSA04FHV','XIUSA04FHB','XIUSA04F15','XIUSA04FKK','XIUSA04FGT','XIUSA00142','FOUSA05UST','FOUSA06DLU','XIUSA04FK0','XIUSA04F2H','FOUSA06DON','XIUSA04F1H','FOUSA06DL2','FOUSA06DLA','XIUSA04FG0','FOUSA05RMQ','FOUSA06DO5','FOUSA06DQ9','FOUSA06DQF','XIUSA04F2Z','FOUSA05URD','FOUSA06DFC','FOUSA06DFI','FOUSA06DFM','FOUSA06DMU','FOUSA06DNX','XIUSA04F3L','FOUSA06DFQ','FOUSA06DKU','FOUSA06DO9','XIUSA04FIO','FOUSA06DQJ','XIUSA04F39','FOUSA05UR5','FOUSA06F8J','FOUSA06F8P','FOUSA06DPJ','XIUSA04F2R']
    },
    '-11':{
        name: 'MSCI Size Index',
        group:'Overview',
        tickers: ['FOUSA08QT8','F00000HE7C','F00000IT6K','F00000HFIU','FOUSA08N4T','FOUSA063SO','FOUSA063SS','XIUSA04F2K','XIUSA04F6H','XIUSA04FB8','XIUSA04FAZ','XIUSA04FE2','XIUSA04FGN','XIUSA04FGW','XIUSA04FHY','XIUSA04FHE','XIUSA04FK3','FOUSA05V03','XIUSA04GSF','XIUSA04F0X','XIUSA04FES','FOUSA05S4J','FOUSA06E8D','XIUSA04FFK','XIUSA04FH5','XIUSA04FIH','XIUSA04FJ0','XIUSA04FJ8','XIUSA04FJK','XIUSA04FKE','XIUSA04FB8','XIUSA04F6H','XIUSA04FAZ','XIUSA04FGN','XIUSA04F0F','XIUSA04FF3','XIUSA04FFT','FOUSA05S59','FOUSA05S5X','XIUSA04FHY','XIUSA04FHE','XIUSA04F18','XIUSA04FKN','XIUSA04FGW','XIUSA00142','XIUSA04FE2','XIUSA04FK3','XIUSA04F2K']
    }
};
*/

MstarData.PresetWindow = {
    '0_1': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1',
            displayLayout: 'listwrap'
        },
        w: 800,
        h: 300
    },
    '0_2': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1',
            displayLayout: 'listgroup',
            groupBy: 'la03z'
        },
        w: 400,
        h: 300
    },
    '0_3': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1',
            displayLayout: 'listgroupwrap',
            groupBy: 'la03z'
        },
        w: 800,
        h: 300
    },
    '0_4': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1',
            displayLayout: 'heatmap'
        },
        w: 800,
        h: 300
    },
    '0_5': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-7',
	    tempCols:  [{
        	    dataIndex: 'Symbol'
	        },{
	            dataIndex: 'BidPrice'
        	},{
	            dataIndex: 'AskPrice'
	        },{
	            dataIndex:'HighPrice'
	        },{
	            dataIndex:'LowPrice'
	        },{
	            dataIndex: 'Time'
	        }],
	            displayLayout: 'list'
	},
        w: 400,
        h: 300
    },

    '2_1': {
        name: 'News',
        type: 2,
        widget: {
            ticker: 'XNAS:MORN'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: (xDesktopH - 6 * 3) / 5 * 3 + 6 * 2,
        w: 800,
        h: 300
    
    },
    '2_2': {
        name: 'News',
        type: 2,
        widget: {
            ticker: 'XNAS:MORN',
            windowConfig: {
                isCheckLock: true
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: (xDesktopH - 6 * 3) / 5 * 3 + 6 * 2,
        w: 800,
        h: 300
    },
    '1_1': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'minute'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_2': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'minute',
            chartStyle: 'ohlc'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_3': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'w',
            zRange: 7
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_4': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'w',
            zRange: 7,
            chartStyle: 'ohlc'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_5': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            mTicker: 'XNYS:IBM',
            cTickers: ['0P00001G7J'],
            frequency: 'd',
            zRange: 6
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_6': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'w',
            zRange: 7,
            'indicatorsData': {
                'SMA': {
                    show: true,
                    num: [200, 50, null]
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '1_7': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'd',
            zRange: 6,
            showVolume: true,
            'indicatorsData': {
                'BBands': {
                    show: true,
                    parameter: [10, 2]
                },
                'DMI': {
                    show: true,
                    parameter: []
                },
                'EMA': {
                    show: true,
                    num: [10, null, null]
                },
                'MAE': {
                    show: true,
                    parameter: [14, 2]
                },
                'MACD': {
                    show: true,
                    parameter: [26, 12, 9]
                },
                'Momentum': {
                    show: true,
                    parameter: [2]
                },
                'PSAR': {
                    show: true,
                    parameter: [0.02, 0.2]
                },
                'PChannel': {
                    show: true,
                    parameter: [14]
                },
                'ROC': {
                    show: true,
                    parameter: [12]
                },
                'SMA': {
                    show: true,
                    num: [10, 50, null]
                },
                'WMA': {
                    show: true,
                    parameter: [15]
                },
                'ForceIndex': {
                    show: true,
                    parameter: [13]
                },
                'ATR': {
                    show: true,
                    parameter: []
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 6 * 5
    },
    
    '1_8': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'd',
            zRange: 6,
            showVolume: true,
            'indicatorsData': {
                'MFI': {
                    show: true,
                    parameter: [14]
                },
                'OBV': {
                    show: true,
                    parameter: []
                },
                'UDRatio': {
                    show: true,
                    parameter: [7, 5]
                },
                'VAcc': {
                    show: true,
                    parameter: []
                },
                'VBP': {
                    show: true,
                    parameter: []
                },
                'Volume': {
                    show: false,
                    parameter: []
                },
                'VPlus': {
                    show: true,
                    parameter: []
                },
                'SMAV': {
                    show: true,
                    num: 50
                },
                'AccDis': {
                    show: true,
                    parameter: []
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 6 * 5
    },
    '1_9': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'd',
            zRange: 6,
            showVolume: true,
            Ticks: [[0, 2007], [28, 2008], [80, 2009], [133, 2010]],
            'indicatorsData': {
                RSI: {
                    show: true,
                    parameter: [14]
                },
                WillR: {
                    show: true,
                    parameter: [14]
                },
                SStochastic: {
                    show: true,
                    parameter: [15, 5]
                },
                FStochastic: {
                    show: true,
                    parameter: [5, 3]
                },
                ULT: {
                    show: true,
                    parameter: []
                },
                Volatility: {
                    show: true,
                    parameter: [10, 10]
                },
                Mass: {
                    show: true,
                    parameter: []
                },
                Keltner: {
                    show: true,
                    parameter: [10, 2, 20]
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 6 * 5
    },
    '1_10': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'd',
            zRange: 6,
            showVolume: true,
            Ticks: [[0, 2007], [28, 2008], [80, 2009], [133, 2010]],
            'valuations': {
                RDividend: {
                    show: true
                },
                DYield: {
                    show: true
                },
                REPS: {
                    show: true,
                    code: 'ST263'
                },
                SInterest: {
                    show: true,
                    code: 'STA0C'
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 6 * 5
    },
    '1_11': {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            ticker: 'XNYS:IBM',
            frequency: 'w',
            zRange: 7,
            showVolume: true,
            Ticks: [[0, 2007], [28, 2008], [80, 2009], [133, 2010]],
            'valuations': {
                PE: {
                    show: true,
                    code: 'HS0A2'
                },
                PS: {
                    show: true,
                    code: 'HS0A5'
                },
                PB: {
                    show: true,
                    code: 'HS0A0'
                },
                PC: {
                    show: true,
                    code: 'HS0A1'
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 6 * 5
    },
	'1_12': {
        name: 'Chart: EUR.USD',
        type: 1,
        securityType:20,
        widget: {
            ticker: '245:EURUSDFLIT',
            frequency: 'minute'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    },
    '14_1': {
        name: 'Market Indexes',
        type: 14,
        widget: {
            align: 'none',
            refresh: true,
			subType: '14_1'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 480,
        h: 440,
		minWidth:480,
		minHeight:280
    },
    '14_2': {
        name: 'Market Barometer',
        type: 14,
        widget: {
            align: 'none',
            refresh: true,
            subType: '14_2',
			maxWidth:250
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 233,
        h: 440,
        minWidth:233,
        minHeight:440
    },
    /*'14_3': {
        name: 'Gainers,Losers,Actives',
        type: 14,
        widget: {
            align: 'tab',
            refresh: true,
            rfStyle: 'markets-refresh-black',
            iframes: [{
                title: 'Gainers',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=GNR&ticker=MDLOX&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }, {
                title: 'Losers',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=LSR&ticker=MDLOX&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }, {
                title: 'Most Actives',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=ACTV&ticker=MDLOX&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }]
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 620,
        h: 220
    },*/
    '14_4': {
        name: 'Bond Market',
        type: 14,
        widget: {
            align: 'tab',
            refresh: true,
            rfStyle: 'markets-refresh-black',
            iframes: [{
                title: 'Treasury Yield',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=TY&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }, {
                title: 'US Govt Bond',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=GB&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }, {
                title: '10 Year T-Note Yield',
                url: QS_PROTOCOL + 'awrd.morningstar.com/SB/main.asp?module=QT&sub=HY&SECODE=2010628104&advtsn=CDEFD734-5B32-4A36-A3F2-26F0A8108D9B&advtfg=0&'
            }]
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 400,
        h: 250,
		minHeight:250
    },
    '14_5': {
        name: 'Sectors',
        type: 14,
        widget: {
            align: 'tab',
            refresh: true,
			subType: '14_5',
            rfStyle: 'markets-refresh-black',
			maxWidth:260
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 250,
        h: 351,
        minWidth:250,
        minHeight:351
    },
    '14_6': {
        name: 'Commodity Futures',
        type: 14,
        widget: {
            align: 'line',
            refresh: true,
			subType: '14_6'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 400,
        h: 180
    },
    '14_7': {
        name: 'Market Calendars',
        type: 12,
        widget: {
            lastActiveTabId: 0,
            title: 'Calendars'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 700,
        h: 400
    },
    '14_8': {
        name: 'Chart',
        type: 1,
        widget: {
            mTicker: 'VIX.X',
            frequency: 'minute',
            zRange: 3,
            showVolume: false,
            lock: true,
            'indicatorsData': {
                Volatility: {
                    show: true
                },
                Volume: {
                    show: false
                }
            }
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 1.8
    },
    '14_9': {
        name: 'Chart',
        type: 1,
        widget: {
            mTicker: 'SPX',
            frequency: 'minute',
            zRange: 2,
            showVolume: false,
            lock: true
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 1.8
    },
    '14_10': {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: -3
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 400,
        h: 300
    },
    '14_11': {
        name: 'Watchlist',
        type: 0,
        widget: {
            displayLayout: 'heatmap',
            currentId: -1
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 3,
        w: 400,
        h: 350
    }
};

MstarData.WatchlistViews = {
    '-1': [ //{ header: 'Name', dataIndex: 'Name'},
    {
        header: 'Symbol',
        dataIndex: 'Symbol',
        dataType: 'string',
        width: 60
    }, {
        header: '<span class=\'hide\'>R/D</span>',
        dataIndex: 'R/D',
        align: 'center',
        dataType: 'string',
        width: 20
    }, {
        header: '<span class=\'hide\'>Alert</span>',
        dataIndex: 'Alert',
        align: 'center',
        dataType: 'html',
        width: 20
    }, {
        header: 'Last',
        dataIndex: 'LastPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Chg',
        dataIndex: 'Chg',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }, {
        header: 'Chg%',
        dataIndex: 'Chg%',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }, {
        header: 'Bid',
        dataIndex: 'BidPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Bid Size',
        dataIndex: 'BidSize',
        align: 'right',
        dataType: 'int',
        width: 48
    }, {
        header: 'Ask',
        dataIndex: 'AskPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Ask Size',
        dataIndex: 'AskSize',
        align: 'right',
        dataType: 'int',
        width: 48
    }, {
        header: 'Vol(mil)',
        dataIndex: 'Volume',
        align: 'right',
        dataType: 'float',
        width: 52
    }, {
        header: 'VWAP',
        dataIndex: 'VWAP',
        align: 'right',
        dataType: 'float',
        width: 52
    }, {
        header: 'High',
        dataIndex: 'HighPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Low',
        dataIndex: 'LowPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Time',
        dataIndex: 'Time',
        dataType: 'time',
        width: 80
    }, {} //dont del
]    ,
    '-2': [{
        header: 'Symbol',
        dataIndex: 'Symbol',
        dataType: 'string',
        width: 60
    }, {
        header: '<span class=\'hide\'>R/D</span>',
        dataIndex: 'R/D',
        align: 'center',
        dataType: 'string',
        width: 20
    }, {
        header: 'Last',
        dataIndex: 'LastPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Chg',
        dataIndex: 'Chg',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }, {
        header: 'Chg%',
        dataIndex: 'Chg%',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }, {
        header: 'Bid',
        dataIndex: 'BidPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Ask',
        dataIndex: 'AskPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }],
    '-3': [{
        header: 'Symbol',
        dataIndex: 'Symbol',
        dataType: 'string',
        width: 60
    }, {
        header: 'Last',
        dataIndex: 'LastPrice',
        align: 'right',
        dataType: 'float',
        width: 48
    }, {
        header: 'Chg',
        dataIndex: 'Chg',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }, {
        header: 'Chg%',
        dataIndex: 'Chg%',
        align: 'right',
        dataType: 'float',
        className: 'bold-cell',
        width: 56
    }],
    '-4': [{
        "id": 0,
        "dataType": "string",
        "width": 60,
        "align": "center",
        "dataIndex": "Symbol",
        "header": "Symbol"
    }, {
        "id": 1,
        "dataType": "float",
        "width": 55,
        "align": "right",
        "dataIndex": "LastPrice",
        "header": "Last"
    }, {
        "id": 2,
        "dataType": "float",
        "width": 56,
        "align": "right",
        "dataIndex": "Chg%",
        "className": "bold-cell",
        "header": "Chg%"
    }, {
        "id": 3,
        "dataType": "float",
        "width": 55,
        "align": "right",
        "dataIndex": "MarketValue",
        "header": "MV"
    }, {
        "id": 4,
        "dataType": "float",
        "width": 55,
        "align": "right",
        "dataIndex": "P/Lpc",
        "header": "P/L %"
    }, {
        "id": 5,
        "dataType": "float",
        "width": 55,
        "align": "right",
        "dataIndex": "P/L",
        "header": "P/L"
    }, {
        "id": 6,
        "dataType": "float",
        "width": 55,
        "align": "right",
        "dataIndex": "NumOfShares",
        "header": "Shares"
    }]
};


//MStar Workspace
gWsList = {
    '-1': { //New Workspace
        id: -1,
        profile: {
            id: -1,
            name: 'New Workspace', //'Untitled',
            screenShotURL: 'IM/blank.gif',
            showHelper: true,
            close: 1
        }
    },
    '-10000': {
        id: -10000,
        profile: {
            id: -10000,
            name: 'Basic',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_basic.png',
            close: 1
        }
    },
    /*'-10001': { id: -10001, profile: { id: -10001, name: 'Autos'} },*/
    '-10002': {
        id: -10002,
        profile: {
            id: -10002,
            name: 'Intraday Chart',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_intradaychart.png',
            close: 1
        }
    },
    '-10003': {
        id: -10003,
        profile: {
            id: -10003,
            name: 'Adv Charts',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_advchart.png',
            close: 1
        }
    },
    '-10004': {
        id: -10004,
        profile: {
            id: -10004,
            name: 'Research',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_research.png',
            close: 1
        }
    },
    '-10006': {
        id: -10006,
        profile: {
            id: -10006,
            name: 'News',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_news.png',
            close: 1
        }
    },
    '-10007': {
        id: -10007,
        profile: {
            id: -10007,
            name: 'Trading',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_trading.png',
            close: 1
        }
    },
    '-10008': {
        id: -10008,
        profile: {
            id: -10008,
            name: 'Markets',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_markets.png',
            close: 1
        }
    },
    '-10009': {
        id: -10009,
        profile: {
            id: -10009,
            name: 'Forex',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_forex.png',
            close: 1
        }
    },
    '-10010': {
        id: -10010,
        profile: {
            id: -10010,
            name: 'Commodities',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_commodities.png',
            close: 1
        }
    },
    '-10011': {
        id: -10011,
        profile: {
            id: -10011,
            name: 'Research +',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_research+.png',
            close: 1
        }
    },
    '-10012': {
        id: -10012,
        profile: {
            id: -10012,
            name: 'Stocks',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_stocks.png',
            close: 1
        }
    },
    '-10013': {
        id: -10013,
        profile: {
            id: -10013,
            name: 'Portfolio',
            screenShotURL: 'theme/' + QS_Theme + '/ws_tpl_portfolio.png',
            close: 1
        }
    }
};

wsWidgets[-10000] = [{
    id: createDefComponentId(),
    profile: {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1'
        },
        x: 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3,
        h: xDesktopH - 6 * 2
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            mTicker: 'XNYS:IBM'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 3
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'News: IBM',
        type: 2,
        widget: {
            ticker: 'XNYS:IBM'
        },
        x: (xDesktopW - 6 * 3) / 3 + 2 * 6,
        y: (xDesktopH - 6 * 3) / 5 * 3 + 6 * 2,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: (xDesktopH - 6 * 3) / 5 * 2
    }
}];
wsWidgets[-10002] = [{
    id: createDefComponentId(),
    profile: {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            'mTicker': '0P000002HD',
            'cTickers': [],
            'pWidth': 878,
            'vWidth': 844,
            'pHeight': 420,
            'vHeight': 105,
            'mWidth': 844,
            'mHeight': 35,
            'isD': false,
            'isS': false,
            'zRange': 1,
            'startDate': '2010-3-8',
            'endDate': '2010-3-8',
            'region': 'USA',
            'lan': 'en-USA',
            'cur': 'USD',
            'frequency': 'minute',
            'needGetVolume': true,
            'slider_EndDate': '2010-3-2',
            'slider_StartDate': '2008-1-1',
            'timeRangeType': 'oneday',
            'miniChartFrequency': 'd',
            'isF': false,
            'needDrawMiniChart': false,
            'dateFromFocus': false,
            'dateToFocus': false,
            'chartStyle': 'mountain',
            'showVolume': true,
            'tickerInfos': {
                '0P000002HD': {
                    'gkey': '126:GOOG',
                    'ticker': 'GOOG',
                    'exch': 'XNAS'
                }
            },
            'chartCursor': 1,
            'indicatorsData': {
                'ROC': {
                    'parameter': [12],
                    'show': true
                },
                
                'MACD': {
                    'parameter': [26, 12, 9],
                    'show': true
                }
            },
            'scaleType': 0,
            'indexsMap': {
                '0P00001G7J': false,
                '0P00001LXY': false,
                '0P00001FJG': false,
                '0P00001G7B': false
            },
            'h': 821,
            'y': 3,
            'x': 6
        },
        x: 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3 * 2,
        h: xDesktopH - 6 * 2
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1'
        },
        x: (xDesktopW - 6 * 3) / 3 * 2 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 3,
        h: (xDesktopH - 6 * 3) / 5 * 3
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'News: IBM',
        type: 2,
        widget: {
            ticker: 'XNYS:IBM',
            isShowContent: false
        },
        x: (xDesktopW - 6 * 3) / 3 * 2 + 2 * 6,
        y: (xDesktopH - 6 * 3) / 5 * 3 + 6 * 2,
        w: (xDesktopW - 6 * 3) / 3,
        h: (xDesktopH - 6 * 3) / 5 * 2
    }
}];
wsWidgets[-10003] = [{
    'id': createDefComponentId(),
    'profile': {
        'w': xDW['1/2'],
        'name': 'Watchlist',
        'type': 0,
        'widget': {
            currentId: '-1'
        },
        'h': xDH['1/3'],
        'y': 6,
        'x': 6
    }
}, {
    'id': createDefComponentId(),
    'profile': {
        'w': xDW['1/2'],
        'h': (xDesktopH - 6 * 2),
        'y': 6,
        'x': xDW['1/2'] + 2 * 6,
        'name': 'Chart: IBM',
        'type': 1,
        'widget': {
            'mTicker': '0P00001G7J',
            'cTickers': [],
            'pWidth': 719,
            'vWidth': 685,
            'pHeight': 173.60000000000002,
            'vHeight': 43.400000000000006,
            'mWidth': 685,
            'mHeight': 35,
            'isD': false,
            'isS': false,
            'zRange': 6,
            'startDate': '2009-3-9',
            'endDate': '2010-3-8',
            'region': 'USA',
            'lan': 'en-USA',
            'cur': 'USD',
            'frequency': 'd',
            'needGetVolume': true,
            'slider_EndDate': '2010-3-2',
            'slider_StartDate': '2008-1-1',
            'timeRangeType': 'year',
            'miniChartFrequency': 'd',
            'isF': false,
            'needDrawMiniChart': false,
            'dateFromFocus': false,
            'dateToFocus': false,
            'chartStyle': 'mountain',
            'showVolume': false,
            'tickerInfos': {
                '0P00001G7J': {
                    'gkey': '126:SPX',
                    'ticker': 'SPX',
                    'exch': 'IXUS'
                },
                '0P000002RH': {
                    'gkey': '126:IBM',
                    'ticker': 'IBM',
                    'exch': 'XNYS'
                }
            },
            'chartCursor': 1,
            'indicatorsData': {
                'FStochastic': {
                    'parameter': [5, 3],
                    'show': true
                },
                'RSI': {
                    'parameter': [14],
                    'show': true
                },
                'WillR': {
                    'parameter': [14],
                    'show': true
                },
                'ROC': {
                    'parameter': [12],
                    'show': true
                },
                'MACD': {
                    'parameter': [26, 12, 9],
                    'show': true
                },
                'SStochastic': {
                    'parameter': [15, 5],
                    'show': true
                }
            },
            'scaleType': 0,
            'indexsMap': {
                '0P00001G7J': false,
                '0P00001LXY': false,
                '0P00001FJG': false,
                '0P00001G7B': false
            }
        }
    }
}, {
    'id': createDefComponentId(),
    'profile': {
        'w': xDW['1/2'],
        'h': xDH['1/3'],
        'y': xDH['1/3'] + 6 * 2,
        x: 6,
        'name': 'Chart: IBM',
        'type': 1,
        'widget': {
            'mTicker': '0P00001G7J',
            'cTickers': [],
            'pWidth': 587,
            'vWidth': 553,
            'pHeight': 110,
            'vHeight': 50,
            'mWidth': 553,
            'mHeight': 35,
            'isD': false,
            'isS': false,
            'zRange': 8,
            'startDate': '2005-3-11',
            'endDate': '2010-3-8',
            'region': 'USA',
            'lan': 'en-USA',
            'cur': 'USD',
            'frequency': 'w',
            'needGetVolume': true,
            'slider_EndDate': '2010-2-12',
            'slider_StartDate': '1990-1-1',
            'timeRangeType': 'fiveyears',
            'miniChartFrequency': 'w',
            'isF': false,
            'needDrawMiniChart': false,
            'dateFromFocus': false,
            'dateToFocus': false,
            'chartStyle': 'mountain',
            'showVolume': true,
            'tickerInfos': {
                '0P00001G7J': {
                    'gkey': '126:SPX',
                    'ticker': 'SPX',
                    'exch': 'IXUS'
                },
                '0P000002RH': {
                    'gkey': '126:IBM',
                    'ticker': 'IBM',
                    'exch': 'XNYS'
                }
            },
            'chartCursor': 1,
            'scaleType': 0,
            'indexsMap': {
                '0P00001G7J': false,
                '0P00001LXY': false,
                '0P00001FJG': false,
                '0P00001G7B': false
            }
        }
    }
}, {
    'id': createDefComponentId(),
    'profile': {
        'w': xDW['1/2'],
        'h': xDH['1/3'],
        'y': xDH['1/3'] * 2 + 6 * 3,
        x: 6,
        'name': 'Chart: IBM',
        'type': 1,
        'widget': {
            'mTicker': '0P000002RH',
            'cTickers': [],
            'pWidth': 588,
            'vWidth': 554,
            'pHeight': 110,
            'vHeight': 50,
            'mWidth': 554,
            'mHeight': 35,
            'isD': false,
            'isS': false,
            'zRange': 1,
            'startDate': '2010-3-8',
            'endDate': '2010-3-8',
            'region': 'USA',
            'lan': 'en-USA',
            'cur': 'USD',
            'frequency': 'minute',
            'needGetVolume': true,
            'slider_EndDate': '2010-3-2',
            'slider_StartDate': '2008-1-1',
            'timeRangeType': 'oneday',
            'miniChartFrequency': 'd',
            'isF': false,
            'needDrawMiniChart': false,
            'dateFromFocus': false,
            'dateToFocus': false,
            'chartStyle': 'mountain',
            'showVolume': true,
            'tickerInfos': {
                '0P000002RH': {
                    'gkey': '126:IBM',
                    'ticker': 'IBM',
                    'exch': 'XNYS'
                }
            },
            'chartCursor': 1,
            'scaleType': 0,
            'indexsMap': {
                '0P00001G7J': false,
                '0P00001LXY': false,
                '0P00001FJG': false,
                '0P00001G7B': false
            }
        }
    }
}];
wsWidgets[-10004] = [{
    id: createDefComponentId(),
    profile: {
        name: 'Bonds: IBM',
        type: 3,
        widget: {
            "secId": "0P000002RH",
            "detail": true,
            "ticker": "0P000002RH",
            "securityType": "ST",
            "showTab": true,
            "tab": "3.18"
        },
        x: (xDesktopW - 6 * 3) / 4 + 2 * 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 4 * 3,
        h: xDesktopH - 6 * 2
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-1'
        },
        x: 6,
        y: 6,
        w: (xDesktopW - 6 * 3) / 4,
        h: xDesktopH - 6 * 2
    }
}];
/*
 wsWidgets[-10006] = [{
 id: createDefComponentId(),
 profile: {
 name: 'Quicltake:IBM',
 type: 3,
 widget: {
 ticker: 'XNYS:IBM'
 },
 x: 6,
 y: (xDesktopH - 6 * 3) / 3 * 2 + 2 * 6,
 w: xDesktopW - 6 * 2,
 h: (xDesktopH - 6 * 3) / 3
 }
 }, {
 id: createDefComponentId(),
 profile: {
 name: 'Watchlist',
 type: 0,
 widget: {
 currentId: '-1'
 },
 x: (xDesktopW - 6 * 3) / 3 * 2 + 2 * 6,
 y: 6,
 w: (xDesktopW - 6 * 3) / 3,
 h: (xDesktopH - 6 * 3) / 3 * 2
 }
 }, {
 id: createDefComponentId(),
 profile: {
 name: 'News: IBM',
 type: 2,
 widget: {
 Ticker: 'IBM',
 Exch: 'XNYS'
 },
 x: 6,
 y: 6,
 w: (xDesktopW - 6 * 3) / 3 * 2,
 h: (xDesktopH - 6 * 3) / 3 * 2
 }
 }];
 */
//markets
wsWidgets[-10008] = [{
    "id": createDefComponentId(),
    "profile": {
        "type": 0,
        "name": "Watchlist",
        "widget": {
            "title": "Watchlist",
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "openedList": [{
                "id": "-3"
            }, {
                "id": "-4"
            }, {
                "id": "-1"
            }, {
                "id": "-2"
            }],
            "currentId": "-3",
            "displayLayout": "listwrap",
            "colsViewID": "-3"
        },
        x: 6,
        y: 6,
        w: xDW['1/3'] * 2 + 6,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2011-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": true,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "minute5",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 1,
            "pHeight": 224,
            "title": "Chart",
            "tickerInfos": {
                "0P00001FJG": {
                    "gkey": "126:!DJI",
                    "ticker": "$INDU",
                    "exch": "IXUS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": null,
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 355,
            "lock": false,
            "ticksize": 12,
            "mHeight": 26,
            "mTicker": "0P00001FJG",
            "scaleType": 0,
            "cTickers": [],
            "cur": "USD",
            "chartStyle": "ohlc",
            "width": 355,
            "height": 335
        },
        x: xDW['1/3'] + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 535,
            "isShowContent": true,
            "height": 435,
            "ticker": null,
            "openedList": [-1, -2, -4, -8, -9, -6, -10],
            "windowConfig": {
                "isCheckLock": true,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -4,
            "saveTitle": "News",
            "symbolType": "all",
            "watchlistId": null,
            "curW": null
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 535,
            "isShowContent": true,
            "height": 335,
            "ticker": null,
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10],
            "windowConfig": {
                "isCheckLock": true,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -8,
            "saveTitle": "News",
            "symbolType": "all",
            "watchlistId": null,
            "curW": null
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2011-1-1",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": true,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "d",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 5,
            "pHeight": 224,
            "title": "Chart",
            "tickerInfos": {
                "0P00001FJG": {
                    "gkey": "126:!DJI",
                    "ticker": "$INDU",
                    "exch": "IXUS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, "Jan 03"], [5, "Jan 10"], [14, "Jan 24"], [19, "Jan 31"], [24, "Feb 07"], [29, "Feb 14"]],
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 375,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P00001FJG",
            "scaleType": 0,
            "cTickers": [],
            "cur": "USD",
            "chartStyle": "mountain",
            "width": 375,
            "height": 335
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}];
//Trading
wsWidgets[-10007] = [{
    id: createDefComponentId(),
    profile: {
        name: 'Chart: IBM',
        type: 1,
        widget: {
            "region": "USA",
            "startDate": "2011-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "minute",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 1,
            "pHeight": 354,
            "title": "Chart",
            "tickerInfos": {
                "0P000002RH": {
                    "gkey": "126:IBM",
                    "ticker": "IBM",
                    "exch": "XNYS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": null,
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "BBands": {
                    "parameter": [10, 2],
                    "show": true
                },
                "VBP": {
                    "parameter": [],
                    "show": true
                },
                "Volume": {
                    "parameter": [],
                    "show": false
                },
                "MACD": {
                    "parameter": [26, 12, 9],
                    "show": true
                }
            },
            "pWidth": 850,
            "lock": false,
            "ticksize": 60,
            "mHeight": 26,
            "mTicker": "0P000002RH",
            "chartStyle": "ohlc"
        },
        x: xDW['1/3'] + 2 * 6,
        y: 6,
        w: xDW['1/3'] * 2,
        h: xDH['1/3'] * 2
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Watchlist',
        type: 0,
        widget: {
            currentId: '-2',
            openedList: [{
                "id": "-3"
            }, {
                "id": "-2"
            }]
        },
        x: 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/3'] * 2
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'News: EBAY',
        type: 2,
        widget: {
            ticker: '0P0000062O',
            isShowContent: false
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: xDH['1/3'] * 2 + 6 * 2,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Quote:EBAY',
        type: 10,
        widget: {
            ticker: '0P0000062O'
        },
        x: 6,
        y: xDH['1/3'] * 2 + 6 * 2,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}, {
    id: createDefComponentId(),
    profile: {
        name: 'Time & Sales:EBAY',
        type: 7,
        widget: {
            ticker: '0P0000062O'
        },
        x: xDW['1/3'] + 2 * 6,
        y: xDH['1/3'] * 2 + 6 * 2,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}];

//News
wsWidgets[-10006] = [{
    "id": createDefComponentId(),
    "profile": {
        "name": "BRIEFING MARKET UPDATES:All",
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 575,
            "isShowContent": true,
            "height": 375,
            "ticker": null,
            "openedList": [-4],
            "windowConfig": {
                "isCheckLock": true,
                "isSelectAuto": false,
                "isShowHideChecked": false,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -4,
            "saveTitle": "BRIEFING MARKET UPDATES",
            "symbolType": "all",
            "watchlistId": null,
            "curW": null
        },
        x: xDW['1/3'] * 2 + 2 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "Calendars",
        "type": 12,
        "widget": {
            "title": "Calendars",
            "lastActiveTabId": 4,
            "width": 555,
            "height": 375
        },
        x: xDW['1/3'] * 2 + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "ALL NEWS:All",
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 715,
            "isShowContent": true,
            "height": 375,
            "ticker": null,
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9],
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": false,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -1,
            "saveTitle": "ALL NEWS",
            "symbolType": "all",
            "watchlistId": null,
            "curW": null
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'] * 2,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "NEWS BY SYMBOL: AAPL",
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 715,
            "isShowContent": true,
            "height": 375,
            "ticker": "0P000000GY",
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9],
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": false,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -8,
            "saveTitle": "NEWS BY SYMBOL",
            "symbolType": "single",
            "watchlistId": null,
            "curW": null
        },
        x: 6,
        y: 6,
        w: xDW['1/3'] * 2,
        h: xDH['1/2']
    }
}];
//forex
wsWidgets[-10009] = [{
    "id": createDefComponentId(),
    "profile": {
        "type": 11,
        "widget": {
            "title": "FOREX Dealing",
            "tickers": ["245:EURUSDFLIT", "245:USDJPYFLIT", "245:GBPUSDFLIT", "245:EURCHFFLIT", "245:AUDUSDFLIT", "245:USDCADFLIT", "245:EURGBPFLIT", "245:EURJPYFLIT", "245:GBPJPYFLIT", "245:CHFJPYFLIT", "245:GBPCHFFLIT", "245:EURAUDFLIT", "245:EURCADFLIT", "245:EURSEKFLIT", "245:AUDCADFLIT", "245:CADJPYFLIT", "245:NZDJPYFLIT", "245:GBPAUDFLIT"],
            "currentForexID": 0,
            "viewStyle": {
                "val": "large",
                "txt": "Large"
            }
        },
        x: 6,
        y: 6,
        w: xDW['1/2'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2010-2-9",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 60,
            "isShowTimeSlider": true,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "d",
            "miniChartFrequency": "d",
            "chartCursor": 1,
            "zRange": 6,
            "pHeight": 144,
            "title": "Chart",
            "tickerInfos": {
                "0P00008R1O": {
                    "gkey": "126:ERO",
                    "ticker": "ERO",
                    "exch": "ARCX"
                },
                "0P00008R1OIIV": {
                    "exch": "IXUS",
                    "ticker": "ERO.IV",
                    "gkey": "126:ERO/IV"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, "Feb"], [30, "Apr"], [80, "Jul"], [127, "Oct"], [176, 2011]],
            "slider_StartDate": "2007-5-8",
            "showVolume": true,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": true
                }
            },
            "pWidth": 595,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P00008R1O",
            "scaleType": 0,
            "cTickers": [],
            "cur": "USD",
            "chartStyle": "mountain",
            "width": 595,
            "height": 335
        },
        x: xDW['1/2'] + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/2'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 0,
        "name": "Watchlist",
        "widget": {
            "currentId": -5,
            "colsViewID": -1
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/2'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 610,
            "isShowContent": true,
            "height": 475,
            "ticker": null,
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10],
            "currentViewID": -9,
            "saveTitle": "News",
            "symbolType": "all"
        },
        x: xDW['1/2'] + 2 * 6,
        y: 6,
        w: xDW['1/2'],
        h: xDH['1/2']
    }
}];
//Commodities
wsWidgets[-10010] = [{
    "id": createDefComponentId(),
    "profile": {
        "name": "Futures",
        "type": 13,
        "widget": {
            "lastActiveTabId": 0
        },
        x: 6,
        y: 6,
        w: xDW['1/3'] * 2,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "Watchlist",
        "type": 0,
        "widget": {
            "currentId": -6,
            "colsViewID": -2
        },
        x: xDW['1/3'] * 2 + 2 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 775,
            "isShowContent": true,
            "height": 295,
            "ticker": null,
            "openedList": [-1, -8, -4, -6, -9],
            "currentViewID": -8,
            "saveTitle": "News",
            "symbolType": "all"
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'] * 2,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2011-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": true,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "minute",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 1,
            "pHeight": 184,
            "title": "Chart",
            "tickerInfos": {
                "0P0000NE66IIV": {
                    "exch": "IXUS",
                    "ticker": "BNO.IV",
                    "gkey": "126:BNO/IV"
                },
                "0P0000NE66": {
                    "gkey": "126:BNO",
                    "ticker": "BNO",
                    "exch": "ARCX"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": null,
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 495,
            "lock": false,
            "ticksize": 60,
            "mHeight": 26,
            "mTicker": "0P0000NE66",
            "scaleType": 0,
            "cTickers": [],
            "cur": "USD",
            "chartStyle": "mountain",
            "width": 495,
            "height": 295
        },
        x: xDW['1/3'] * 2 + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}];

//Research +
wsWidgets[-10011] = [{
    "id": createDefComponentId(),
    "profile": {
        "type": 0,
        "name": "Watchlist",
        "widget": {
            colsViewID: '-1',
            currentId: '-1'
        },
        x: 6,
        y: 6,
        w: xDW['1/4'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "Profile: IBM",
        "type": 3,
        "widget": {
            "secId": "0P000002RH",
            "detail": true,
            "ticker": "0P000002RH",
            "securityType": "ST",
            "showTab": true,
            "tab": "3.11",
            "subtab": null,
            "width": 956,
            "height": 486
        },
        x: xDW['1/4'] + 2 * 6,
        y: 6,
        w: xDW['1/4'] * 3,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "Chart: IBM",
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2006-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": true
            },
            "vHeight": 60,
            "isShowTimeSlider": true,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "w",
            "miniChartFrequency": "d",
            "chartCursor": 1,
            "zRange": 8,
            "pHeight": 145,
            "title": "Chart",
            "tickerInfos": {
                "0P00001G7J": {
                    "gkey": "126:SPX",
                    "ticker": "SPX",
                    "exch": "IXUS"
                },
                "0P000002RH": {
                    "gkey": "126:IBM",
                    "ticker": "IBM",
                    "exch": "XNYS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, 2006], [46, 2007], [98, 2008], [150, 2009], [203, 2010], [255, 2011]],
            "slider_StartDate": "2001-1-2",
            "showVolume": true,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": true
                }
            },
            "pWidth": 884,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P000002RH",
            "scaleType": 0,
            "cTickers": ["0P00001G7J"],
            "cur": "USD",
            "chartStyle": "mountain",
            "width": 884,
            "height": 336
        },
        x: xDW['1/4'] + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/4'] * 3,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "News: IBM",
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 365,
            "isShowContent": false,
            "height": 335,
            "ticker": "0P000002RH",
            "openedList": [-1, -2, -3],
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -1,
            "saveTitle": "News",
            "symbolType": "single",
            "watchlistId": null,
            "curW": null
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/4'],
        h: xDH['1/2']
    }
}];

//Stocks
wsWidgets[-10012] = [{
    "id": createDefComponentId(),
    "profile": {
        "name": "Performance: GOOG",
        "type": 3,
        "widget": {
            "secId": "0P000002HD",
            "detail": true,
            "ticker": "0P000002HD",
            "securityType": "ST",
            "showTab": true,
            "tab": "3.21",
            "subtab": "3.2112",
            "width": 995,
            "height": 475
        },
        x: xDW['1/4'] + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/4'] * 3 + 2 * 6,
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "News: GOOG",
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 275,
            "isShowContent": false,
            "height": 475,
            "ticker": "0P000002HD",
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9],
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -1,
            "saveTitle": "News",
            "symbolType": "single",
            "watchlistId": null,
            "curW": null
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/4'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "name": "Chart: GOOG",
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2011-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "minute5",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 1,
            "pHeight": 214,
            "title": "Chart",
            "tickerInfos": {
                "0P00001G7J": {
                    "gkey": "126:SPX",
                    "ticker": "SPX",
                    "exch": "IXUS"
                },
                "0P000002HD": {
                    "gkey": "126:GOOG",
                    "ticker": "GOOG",
                    "exch": "XNAS"
                },
                "0P00002D82IIV": {
                    "gkey": "126:QXV",
                    "ticker": "QXV",
                    "exch": "IXUS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": null,
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 495,
            "lock": false,
            "ticksize": 12,
            "mHeight": 26,
            "mTicker": "0P000002HD",
            "scaleType": 0,
            "cTickers": ["0P00001G7J"],
            "cur": "USD",
            "chartStyle": "ohlc",
            "width": 495,
            "height": 295
        },
        x: xDW['1/3'] + 2 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 10,
        "widget": {
            "ticker": "0P000002HD",
            "sequence": {
                "ST": ["uniquespace", "BidPrice", "BidSize", "AskPrice", "AskSize", "LowPrice", "Volume", "ClosePrice", "OpenPrice", "st169", "sta65", "st159", "sta0f", "st160", "st198", "st408", "st415", "st410", "st263", "sta44", "pd007", "pd009", "pd00d", "pd00f", "pd00h", "pd00b", "VWAP", "LastMarket", "st200"],
                "FO": ["uniquespace", "ClosePrice", "OpenPrice", "sta65", "of009", "os463", "os00m", "os03s", "os388", "of028", "hs05a", "hs00l", "rr01g", "rr01l", "rr01k", "st200"],
                "FE": ["uniquespace", "BidPrice", "BidSize", "AskPrice", "AskSize", "LowPrice", "Volume", "ClosePrice", "OpenPrice", "sta65", "pd007", "pd009", "pd00d", "pd00f", "pd00h", "pd00b", "VWAP", "LastMarket", "of009", "os00m", "of028"],
                "undefined": {
                    "ST": ["uniquespace", "BidPrice", "BidSize", "AskPrice", "AskSize", "LowPrice", "Volume", "ClosePrice", "OpenPrice", "st169", "sta65", "st159", "sta0f", "st160", "st198", "st408", "st415", "st410", "st263", "sta44", "pd007", "pd009", "pd00d", "pd00f", "pd00h", "pd00b", "VWAP", "LastMarket", "st200"],
                    "FO": [],
                    "FE": [],
                    "FC": [],
                    "XI": []
                },
                "FC": [],
                "XI": []
            },
            "securityType": "ST",
            "width": 375,
            "height": 295
        },
        x: 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2010-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2011-2-15",
            "frequency": "d",
            "miniChartFrequency": "d",
            "chartCursor": 1,
            "zRange": 6,
            "pHeight": 214,
            "title": "Chart",
            "tickerInfos": {
                "0P00001G7J": {
                    "gkey": "126:SPX",
                    "ticker": "SPX",
                    "exch": "IXUS"
                },
                "0P000002HD": {
                    "gkey": "126:GOOG",
                    "ticker": "GOOG",
                    "exch": "XNAS"
                },
                "0P00002D82IIV": {
                    "gkey": "126:QXV",
                    "ticker": "QXV",
                    "exch": "IXUS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, "Feb"], [32, "Apr"], [95, "Jul"], [159, "Oct"], [223, 2011]],
            "slider_StartDate": "2004-8-19",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 395,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P000002HD",
            "scaleType": 0,
            "cTickers": ["0P00001G7J"],
            "cur": "USD",
            "chartStyle": "mountain",
            "width": 395,
            "height": 295
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}];

//Portfolio
wsWidgets[-10013] = [{
    "id": createDefComponentId(),
    "profile": {
        "type": 0,
        "name": "Watchlist",
        "widget": {
            "colsViewID": -4,
            "currentId": "-2"
        },
        x: 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2011-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "minute5",
            "miniChartFrequency": "minute",
            "chartCursor": 1,
            "zRange": 1,
            "pHeight": 174,
            "title": "Chart",
            "tickerInfos": {
                "0P000000GY": {
                    "gkey": "126:AAPL",
                    "ticker": "AAPL",
                    "exch": "XNAS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": null,
            "slider_StartDate": "2010-11-5",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 435,
            "lock": false,
            "ticksize": 12,
            "mHeight": 26,
            "mTicker": "0P000000GY",
            "scaleType": 0,
            "cTickers": [],
            "cur": "USD",
            "chartStyle": "candle",
            "width": 435,
            "height": 255
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2009-6-29",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2010-5-26",
            "frequency": "d",
            "miniChartFrequency": "d",
            "chartCursor": 1,
            "zRange": 11,
            "pHeight": 174,
            "title": "Chart",
            "tickerInfos": {
                "0P00001G7J": {
                    "gkey": "126:SPX",
                    "ticker": "SPX",
                    "exch": "IXUS"
                },
                "0P000000GY": {
                    "gkey": "126:AAPL",
                    "ticker": "AAPL",
                    "exch": "XNAS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, "Jun"], [2, "Jul"], [66, "Oct"], [130, 2010], [191, "Apr"]],
            "slider_StartDate": "2001-1-2",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 415,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P000000GY",
            "scaleType": 0,
            "cTickers": ["0P00001G7J"],
            "cur": "USD",
            "chartStyle": "ab",
            "width": 415,
            "height": 255
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: xDH['1/3'] + 2 * 6,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 1,
        "widget": {
            "region": "USA",
            "startDate": "2008-2-14",
            "events": {
                "earnings": false,
                "splits": false,
                "dividend": false
            },
            "vHeight": 0,
            "isShowTimeSlider": false,
            "valuations": {},
            "endDate": "2011-2-14",
            "frequency": "w",
            "miniChartFrequency": "d",
            "chartCursor": 1,
            "zRange": 7,
            "pHeight": 174,
            "title": "Chart",
            "tickerInfos": {
                "0P00001G7J": {
                    "gkey": "126:SPX",
                    "ticker": "SPX",
                    "exch": "IXUS"
                },
                "0P000000GY": {
                    "gkey": "126:AAPL",
                    "ticker": "AAPL",
                    "exch": "XNAS"
                }
            },
            "lan": "en-USA",
            "showIIVTicker": false,
            "Ticks": [[0, 2008], [46, 2009], [99, 2010], [151, 2011]],
            "slider_StartDate": "2001-1-1",
            "showVolume": false,
            "autoTitle": true,
            "yaxisAlign": "right",
            "indicatorsData": {
                "Volume": {
                    "parameter": [],
                    "show": false
                }
            },
            "pWidth": 435,
            "lock": false,
            "ticksize": null,
            "mHeight": 26,
            "mTicker": "0P000000GY",
            "scaleType": 0,
            "cTickers": ["0P00001G7J"],
            "cur": "USD",
            "chartStyle": "ab",
            "width": 435,
            "height": 255
        },
        x: xDW['1/3'] * 2 + 3 * 6,
        y: xDH['1/3'] * 2 + 3 * 6,
        w: xDW['1/3'],
        h: xDH['1/3']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 2,
        "widget": {
            "model": "default",
            "isSaveRange": false,
            "width": 255,
            "isShowContent": false,
            "height": 375,
            "ticker": "0P000000GY",
            "openedList": [-1, -2, -3, -4, -5, -6, -7, -8, -9],
            "windowConfig": {
                "isCheckLock": false,
                "isSelectAuto": true,
                "isShowHideChecked": true,
                "isCheckAutoAddSymbol": true
            },
            "currentViewID": -1,
            "saveTitle": "News",
            "symbolType": "single",
            "watchlistId": null,
            "curW": null
        },
        x: 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDW['1/4'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 10,
        "widget": {
            "ticker": "0P000000GY",
            "sequence": {
                "ST": ["uniquespace", "BidPrice", "BidSize", "AskPrice", "AskSize", "LowPrice", "Volume", "ClosePrice", "OpenPrice", "st169", "sta65", "st159", "sta0f", "st160", "st198", "st408", "st415", "st410", "st263", "sta44", "pd007", "pd009", "pd00d", "pd00f", "pd00h", "pd00b", "VWAP", "LastMarket", "st200"],
                "FO": [],
                "FE": [],
                "undefined": {
                    "ST": ["uniquespace", "BidPrice", "BidSize", "AskPrice", "AskSize", "LowPrice", "Volume", "ClosePrice", "OpenPrice", "st169", "sta65", "st159", "sta0f", "st160", "st198", "st408", "st415", "st410", "st263", "sta44", "pd007", "pd009", "pd00d", "pd00f", "pd00h", "pd00b", "VWAP", "LastMarket", "st200"],
                    "FO": [],
                    "FE": [],
                    "FC": [],
                    "XI": []
                },
                "FC": [],
                "XI": []
            },
            "securityType": "ST"
        },
        x: xDW['1/3'] + 2 * 6,
        y: 6,
        w: xDW['1/3'],
        h: xDH['1/2']
    }
}, {
    "id": createDefComponentId(),
    "profile": {
        "type": 3,
        "widget": {
            "secId": "0P000000GY",
            "detail": true,
            "ticker": "0P000000GY",
            "securityType": "ST",
            "showTab": true,
            "tab": "3.11",
            "subtab": "3.2111"
        },
        x: xDW['1/4'] + 2 * 6,
        y: xDH['1/2'] + 2 * 6,
        w: xDesktopW - xDW['1/3'] - xDW['1/4'] - 4 * 6,
        h: xDH['1/2']
    }
}]

//New workspace
wsWidgets[-1] = [];


(function(){
    var pro = null;
    var pro_noPermission;
    for (var p in MstarData.PresetWindow) {
        pro_noPermission = false;
        pro = MstarData.PresetWindow[p];
        pro.oldBox = {
            width: pro.w,
            height: pro.h,
            top: pro.y,
            left: pro.x
        };
        if ($.inArray(pro.type, GOLBAL_DATA.ModulePermission) < 0) {
            pro_noPermission = true;
        }
        if (pro_noPermission == true) { //remove workspace if no permission
            delete MstarData.PresetWindow[p];
        }
    }
    
    var wd = null;
    var noPermission;
    for (var k in wsWidgets) {
    
        noPermission = false;
        
        for (var i = 0; i < wsWidgets[k].length; i++) {
            wd = wsWidgets[k][i];
            //build restore box
            if (wd.profile) {
                wd.profile.oldBox = {
                    width: wd.profile.w,
                    height: wd.profile.h,
                    top: wd.profile.y,
                    left: wd.profile.x
                };
            }
            
            //Check permission
            if ($.inArray(wd.profile.type, GOLBAL_DATA.ModulePermission) < 0) {
                noPermission = true;
            }
        }
        
        if (noPermission == true) { //remove workspace if no permission
            wsWidgets[k] = [];
            gWsList[k] = {};
            delete wsWidgets[k];
            delete gWsList[k];
        }
    }
})();
